This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP] Fix crash in LoopCounterRefChecker when MemberExpr is not Var or Field
ClosedPublic

Authored by mikerice on Jul 16 2019, 5:19 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mikerice created this revision.Jul 16 2019, 5:19 PM
This revision is now accepted and ready to land.Jul 16 2019, 5:23 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2019, 8:20 AM