summaryrefslogtreecommitdiffstats
path: root/lldb/source/DataFormatters
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-07-22 20:40:01 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-07-22 20:40:01 +0000
commit695f0f102479f2ea01484188b676b38560c5290d (patch)
tree0c7adc6c72c0bc94a5cb1964116c06e1c91afa6b /lldb/source/DataFormatters
parentfba933f94b490cf7f4cfefe0e13f1df972b54473 (diff)
downloadbcm5719-llvm-695f0f102479f2ea01484188b676b38560c5290d.tar.gz
bcm5719-llvm-695f0f102479f2ea01484188b676b38560c5290d.zip
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 llvm-svn: 213682
Diffstat (limited to 'lldb/source/DataFormatters')
-rw-r--r--lldb/source/DataFormatters/TypeSynthetic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/TypeSynthetic.cpp b/lldb/source/DataFormatters/TypeSynthetic.cpp
index 29f0c627675..3949673a4be 100644
--- a/lldb/source/DataFormatters/TypeSynthetic.cpp
+++ b/lldb/source/DataFormatters/TypeSynthetic.cpp
@@ -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();
OpenPOWER on IntegriCloud