diff options
| author | Erik Pilkington <erik.pilkington@gmail.com> | 2019-03-26 23:21:19 +0000 |
|---|---|---|
| committer | Erik Pilkington <erik.pilkington@gmail.com> | 2019-03-26 23:21:19 +0000 |
| commit | 14f6d1527c706d0749bad224fb6a4d2586d608f4 (patch) | |
| tree | e8e4e67b2a0d950f23b951cefd8de31d76500661 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | e6eef49f05dadd781a708e68c2fc91ff5aff64a1 (diff) | |
[Sema] Fix an assert when a block captures a constexpr local
MarkVarDeclODRUsed indirectly calls captureInBlock, which creates a copy
expression. The copy expression is insulated in it's own
ExpressionEvaluationContext, so it saves, mutates, and restores MaybeODRUseExprs
as CleanupVarDeclMarking is iterating through it, leading to a crash. Fix this
by iterating through a local copy of MaybeODRUseExprs.
rdar://47493525
https://reviews.llvm.org/D59670
llvm-svn: 357040
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
