Details
Details
- Reviewers
rsmith
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Ok, thanks! I was hesitant for the changes in libclang, because of the return statements.
Comment Actions
You should remove the code after the assert(0), or you'll trigger "unreachable code" warnings.
Comment Actions
If possible, please upload patches with full context - makes it easier to check around nearby code when reviewing. (the 'arc' tool for phab helps with this)
include/clang/AST/Redeclarable.h | ||
---|---|---|
257–261 | Branch-to-unreachable is generally to be avoided. Looks like this code should actually change to: if (Current->isFirstDecl()) { assert(PassedFirst); Similar comments on many of the other changes here |
Branch-to-unreachable is generally to be avoided.
Looks like this code should actually change to:
Similar comments on many of the other changes here