Author: majnemer Date: Tue Jul 22 15:40:01 2014 New Revision: 213682 URL: http://llvm.org/viewvc/llvm-project?rev=213682&view=rev Log: TypeSynthetic: Fix a pointer-to-function to void-pointer cast
reinterpret_cast may not convert a pointer-to-function to a void-pointer. Take a detour through intptr_t and *then* convert to a pointer-to-function. Differential Revision: http://reviews.llvm.org/D4627 Modified: lldb/trunk/source/DataFormatters/TypeSynthetic.cpp Modified: lldb/trunk/source/DataFormatters/TypeSynthetic.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/TypeSynthetic.cpp?rev=213682&r1=213681&r2=213682&view=diff ============================================================================== --- lldb/trunk/source/DataFormatters/TypeSynthetic.cpp (original) +++ lldb/trunk/source/DataFormatters/TypeSynthetic.cpp Tue Jul 22 15:40:01 2014 @@ -57,7 +57,7 @@ CXXSyntheticChildren::GetDescription() Cascades() ? "" : " (not cascading)", SkipsPointers() ? " (skip pointers)" : "", SkipsReferences() ? " (skip references)" : "", - reinterpret_cast<void*>(m_create_callback), + reinterpret_cast<void*>(reinterpret_cast<intptr_t>(m_create_callback)), m_description.c_str()); return sstr.GetString(); _______________________________________________ lldb-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
