[PATCH] D72707: [clang][OpenCL] Fix covered switch warning

Jinsong Ji via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 14 08:31:29 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe2b8e2113a49: [clang][OpenCL] Fix covered switch warning (authored by jsji).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72707

Files:
  clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp


Index: clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
===================================================================
--- clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
+++ clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
@@ -751,9 +751,7 @@
   }
 
   // End of switch statement.
-  OS << "    default:\n"
-     << "      llvm_unreachable(\"OpenCL builtin type not handled yet\");\n"
-     << "  } // end of switch (Ty.ID)\n\n";
+  OS << "  } // end of switch (Ty.ID)\n\n";
 
   // Step 2.
   // Add ExtVector types if this was a generic type, as the switch statement


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72707.237992.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200114/18609174/attachment.bin>


More information about the cfe-commits mailing list