diff options
author | Matt <msta@google.com> | 2025-05-15 12:50:45 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-15 10:50:45 +0800 |
commit | 4630d464c5cfd3f2ccdf3ac167694977736ce00e (patch) | |
tree | 09e405f784c9b190569348dc8de8fc833ce6808a /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | ee786975195c9cab264c88db8c43980b78780167 (diff) | |
download | llvm-4630d464c5cfd3f2ccdf3ac167694977736ce00e.zip llvm-4630d464c5cfd3f2ccdf3ac167694977736ce00e.tar.gz llvm-4630d464c5cfd3f2ccdf3ac167694977736ce00e.tar.bz2 |
[clang] Fix a segfault when M is a nullptr (#130712)
If `MM->getOwningModule` returns nullptr, then `isVisible` is called
with nullptr, which then calls `getImportLoc(nullptr)`
https://github.com/llvm/llvm-project/blob/077e0c134a31cc16c432ce685458b1de80bfbf84/clang/lib/Lex/PPMacroExpansion.cpp#L208
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions