summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/rdar44436068/Test128BitsInteger.py
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-01-17 22:05:50 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-01-17 22:05:50 +0000
commit0444006fff93b24852328c4f0d32f37ba00b3c34 (patch)
treed6d5936ab53e43a6012888948edb957b3cdeaf18 /lldb/packages/Python/lldbsuite/test/expression_command/rdar44436068/Test128BitsInteger.py
parent1ef3866a644757f0c8c04f62db6784210bf5ed6e (diff)
downloadbcm5719-llvm-0444006fff93b24852328c4f0d32f37ba00b3c34.tar.gz
bcm5719-llvm-0444006fff93b24852328c4f0d32f37ba00b3c34.zip
Fix cleanup registration for lambda captures.
Lambda captures should be destroyed if an exception is thrown only if the construction of the complete lambda-expression has not completed. (If the lambda-expression has been fully constructed, any exception will invoke its destructor, which will destroy the captures.) This is directly modeled after how we handle the equivalent situation in InitListExprs. Note that EmitLambdaLValue was unreachable because in C++11 onwards the frontend never creates the awkward situation where a prvalue expression (such as a lambda) is used in an lvalue context (such as the left-hand side of a class member access). llvm-svn: 351487
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/rdar44436068/Test128BitsInteger.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud