summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-27 08:19:09 +0000
committerStephan Bergmann <sbergman@redhat.com>2017-06-27 08:19:09 +0000
commitf31b0dc473c4b25ab6abf127c6c9a54a5c444b74 (patch)
treede6df5d32014ea6c33544452453a80a4aac45e02 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parent2315d83333c862b2afb27cf28f7174ed015234c7 (diff)
downloadbcm5719-llvm-f31b0dc473c4b25ab6abf127c6c9a54a5c444b74.tar.gz
bcm5719-llvm-f31b0dc473c4b25ab6abf127c6c9a54a5c444b74.zip
Make CastExpr::getSubExprAsWritten look through implicit temporary under CK_ConstructorConversion
With struct S1 {}; struct S2 { operator S1(); }; S1 f(S2 s) { return static_cast<S1>(s); } the static_cast expr is CXXStaticCastExpr 0x... 'struct S1' static_cast<struct S1> <ConstructorConversion> `-CXXConstructExpr 0x... 'struct S1' 'void (struct S1 &&) noexcept' elidable `-MaterializeTemporaryExpr 0x... 'struct S1' xvalue `-ImplicitCastExpr 0x... 'struct S1' <UserDefinedConversion> `-CXXMemberCallExpr 0x... 'struct S1' `-MemberExpr 0x... '<bound member function type>' .operator S1 0x... `-DeclRefExpr 0x... 'struct S2' lvalue ParmVar 0x... 's' 'struct S2' getSubExprAsWritten used to return the MaterializeTemporaryExpr (of type S1) under the CXXConstructExpr, instead of unwinding further to the DeclRefExpr (of type S2) at the bottom. Differential Revision: https://reviews.llvm.org/D22128 llvm-svn: 306377
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud