diff options
| author | Dimitry Andric <dimitry@andric.com> | 2024-10-24 19:30:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-24 19:30:38 +0200 |
| commit | 4bce21480fc52bf583b6bfe5072f9eb70c21f6e4 (patch) | |
| tree | 6008fbfee83046929ec28d810a2ac04cb7fe0838 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 87b3c07ae696883098f4780765b7cf1fcf75716d (diff) | |
Ensure !NDEBUG with LLVM_ENABLE_ABI_BREAKING_CHECKS does not segfault (#113588)
In SelectionDAG, `TargetTransformInfo::hasBranchDivergence()` can be
called when both `NDEBUG` and `LLVM_ENABLE_ABI_BREAKING_CHECKS` are
enabled. In that case, the class member `TTI` is still initialized to
`nullptr`, causing a segfault.
Fix this by ensuring that all the calls to `hasBranchDivergence` and
`VerifyDAGDivergence` only occur when `NDEBUG` is disabled, and
`LLVM_ENABLE_ABI_BREAKING_CHECKS` is enabled.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
