diff options
| author | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2023-03-08 13:04:29 -0500 |
|---|---|---|
| committer | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2023-03-08 13:41:32 -0500 |
| commit | c0967995d254fd2dd24ba74afa46df5f559f11ba (patch) | |
| tree | abfec0e3e5f3515732ce7d67562de0f333508463 /lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp | |
| parent | 7fb0b1b8d7e75c442b4ae2f1564e1e703aca98b4 (diff) | |
[CodeGen] Prevent nullptr deref in genAlternativeCodeSequence
A pointer dereference was added (D141302) above an assert that checks
whether the pointer is null. This commit moves the assert above the
dereference and transforms it into an llvm_unreachable to better express
the intent that certain switch cases should never be reached.
Differential Revision: https://reviews.llvm.org/D145599
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp')
0 files changed, 0 insertions, 0 deletions
