[PATCH] D67364: [Driver] Handle default case in refactored addOpenMPRuntime
Pirama Arumuga Nainar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 9 12:41:50 PDT 2019
pirama created this revision.
pirama added reviewers: srhines, danalbert.
Herald added a subscriber: guansong.
Herald added a reviewer: jdoerfert.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D67364
Files:
clang/lib/Driver/ToolChains/CommonArgs.cpp
Index: clang/lib/Driver/ToolChains/CommonArgs.cpp
===================================================================
--- clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -525,6 +525,8 @@
case Driver::OMPRT_IOMP5:
CmdArgs.push_back("-liomp5");
break;
+ default:
+ break;
}
if (ForceStaticHostRuntime)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67364.219412.patch
Type: text/x-patch
Size: 370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190909/f74f2dfa/attachment.bin>
More information about the cfe-commits
mailing list