[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:47:14 PDT 2019


pirama updated this revision to Diff 219413.
pirama added a comment.

Check for OMPRT_Unknown instead of a default case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67364/new/

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;
+  case Driver::OMPRT_Unknown:
+    break;
   }
 
   if (ForceStaticHostRuntime)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67364.219413.patch
Type: text/x-patch
Size: 389 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190909/c13ab997/attachment.bin>


More information about the cfe-commits mailing list