checkDecl is only valid for VarDecls or FieldDecls, since getCanonicalDecl expects only these. Prevent other Decl kinds (such as CXXMethodDecls and EnumConstantDecls) from entering and asserting.
Details
Details
- Reviewers
ABataev cfe-commits - Commits
- rC366336: [OPENMP]Fix crash in LoopCounterRefChecker when MemberExpr is not Var or Field
rG552c2c09d354: [OPENMP]Fix crash in LoopCounterRefChecker when MemberExpr is not Var or Field
rL366336: [OPENMP]Fix crash in LoopCounterRefChecker when MemberExpr is not Var or Field
Diff Detail
Diff Detail
- Repository
- rL LLVM