This is an archive of the discontinued LLVM Phabricator instance.

[OMPT] Resolve warnings because of ints in if conditions
ClosedPublic

Authored by Hahnfeld on Aug 7 2019, 6:38 AM.

Details

Summary

The implementation status can only be one of

ompt_event_UNIMPLEMENTED = ompt_set_never = 1
ompt_event_MAY_ALWAYS = ompt_set_always = 5

In both cases, the condition was already true, so just remove
the check.

Diff Detail

Repository
rL LLVM

Event Timeline

Hahnfeld created this revision.Aug 7 2019, 6:38 AM
Herald added a project: Restricted Project. · View Herald Transcript
jdoerfert accepted this revision.Aug 7 2019, 1:37 PM

LGTM.

This revision is now accepted and ready to land.Aug 7 2019, 1:37 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2019, 6:25 AM