-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute plugins are broken #70702
Comments
@llvm/issue-subscribers-clang-frontend Author: Aaron Ballman (AaronBallman)
The changes in https://github.com/llvm/llvm-project/commit/0faee97a924adec76d5c7cd680c289ced51e6b5a accidentally broke attribute plugins (for which we have no test coverage, so the author had no way to know that this breakage happened!).
The issue comes from the changes to ParsedAttr.cpp:
the call to
|
I made a pr for this, but I haven't tested it because I don't know how to make a plugin. #70877 |
[0faee97](0faee97) 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](0faee97), and this patch fixes it. Bug: [70702](#70702)
This should be closed, right? PR is merged. And attribute plugins seems to work fine on trunk. |
The changes in 0faee97 accidentally broke attribute plugins (for which we have no test coverage, so the author had no way to know that this breakage happened!).
The issue comes from the changes to ParsedAttr.cpp:
the call to
getAttributeSpellingListIndex()
is reaching an unreachable that is generated here:llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp
Line 3637 in 89564f0
The text was updated successfully, but these errors were encountered: