aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorMatt <msta@google.com>2025-05-15 12:50:45 +1000
committerGitHub <noreply@github.com>2025-05-15 10:50:45 +0800
commit4630d464c5cfd3f2ccdf3ac167694977736ce00e (patch)
tree09e405f784c9b190569348dc8de8fc833ce6808a /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parentee786975195c9cab264c88db8c43980b78780167 (diff)
downloadllvm-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