aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAmy Huang <akhuang@google.com>2023-11-20 11:14:40 -0800
committerGitHub <noreply@github.com>2023-11-20 11:14:40 -0800
commit0ba5f6e6bd971d74c530e50587c69489e625ce8e (patch)
treeea87fa71f6c92359168d93e1e10c40ea99c898f4 /clang/lib/CodeGen/CodeGenModule.cpp
parent2404477219f87dd9fdd3ed46cc9257699af475a8 (diff)
downloadllvm-0ba5f6e6bd971d74c530e50587c69489e625ce8e.zip
llvm-0ba5f6e6bd971d74c530e50587c69489e625ce8e.tar.gz
llvm-0ba5f6e6bd971d74c530e50587c69489e625ce8e.tar.bz2
Fix to attribute plugins reaching an unreachable (#70877)
[0faee97](https://github.com/llvm/llvm-project/commit/0faee97a924adec76d5c7cd680c289ced51e6b5a) broke attribute plugins. Specifically, it added a call to `getAttributeSpellingListIndex()` in situations that reached an unreachable statement. This patch adds a check before calling that to avoid hitting the unreachable. `clang/test/Frontend/plugin-attribute.cpp` has been broken since [0faee97](https://github.com/llvm/llvm-project/commit/0faee97a924adec76d5c7cd680c289ced51e6b5a), and this patch fixes it. Bug: [70702](https://github.com/llvm/llvm-project/issues/70702)
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions