This is an archive of the discontinued LLVM Phabricator instance.

Fix signal during the call to checkOpenMPLoop.
ClosedPublic

Authored by jyu2 on Aug 3 2021, 11:54 AM.

Details

Summary

Fix signal during the call to checkOpenMPLoop.

The root problem is a null pointer is accessed during the call to
checkOpenMPLoop, because loop up bound expr is an error expression
due to error diagnostic was emit early.

To fix this, in setLCDeclAndLB, setUB and setStep instead return false,
return true when LB, UB or Step contains Error, so that the checking is
stopped in checkOpenMPLoop.

Diff Detail

Event Timeline

jyu2 created this revision.Aug 3 2021, 11:54 AM
jyu2 requested review of this revision.Aug 3 2021, 11:54 AM
This revision is now accepted and ready to land.Aug 3 2021, 11:56 AM
This revision was automatically updated to reflect the committed changes.