This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Handle default case in refactored addOpenMPRuntime
ClosedPublic

Authored by pirama on Sep 9 2019, 12:38 PM.

Details

Summary

Appease failed builds (due to -Werror and -Wswitch) where OMPRT_Unknown
is not handled in the switch statement (even though it's handled by the
early exit).

This fixes -Wswitch triggered by r371442.

Diff Detail

Repository
rL LLVM

Event Timeline

pirama created this revision.Sep 9 2019, 12:38 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: guansong. · View Herald Transcript
srhines accepted this revision.Sep 9 2019, 12:42 PM
This revision is now accepted and ready to land.Sep 9 2019, 12:42 PM
pirama updated this revision to Diff 219413.Sep 9 2019, 12:45 PM

Check for OMPRT_Unknown instead of a default case.

srhines accepted this revision.Sep 9 2019, 12:45 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2019, 12:52 PM