summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2021-11-10 12:45:02 -0500
committerJames Y Knight <jyknight@google.com>2022-01-14 18:01:29 -0500
commita4e255f9c6d4458fa6e70394af626f3b65e0a26d (patch)
tree220f369f9d58fc2722ddd3ccadc7c24d9e559c62 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parentca88becc614fef72ff0ccedad7115e4aaa793eb3 (diff)
Skip exception cleanups when the innermost scope is EHTerminateScope.
EHTerminateScope is used to implement C++ noexcept semantics. Per C++ [except.terminate], it is implemented-defined whether no, some, or all cleanups are run prior to terminatation. Therefore, the code to run cleanups on the way towards termination is unnecessary, and may be omitted. After this change, we will still run some cleanups: any cleanups in a function called from the noexcept function will continue to run, while those in the noexcept function itself will not. Differential Revision: https://reviews.llvm.org/D113620
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions