This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix OpenMP critical hint parameter check
ClosedPublic

Authored by peixin on Mar 7 2022, 3:41 AM.

Details

Summary

The paramemter of hint clause in OpenMP critical hint should be
non-negative. The omp_lock_hint_none is 0 in omp.h.

Diff Detail

Event Timeline

peixin created this revision.Mar 7 2022, 3:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2022, 3:41 AM
peixin requested review of this revision.Mar 7 2022, 3:41 AM
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Mar 7 2022, 4:02 AM
This revision was automatically updated to reflect the committed changes.