[PATCH] D47150: [Clang Tablegen] Add llvm_unreachable() to getModifierName()

Mark Searles via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 21 10:33:13 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL332854: [Clang Tablegen] Add llvm_unreachable() to getModifierName() (authored by msearles, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D47150?vs=147809&id=147814#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D47150

Files:
  cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp


Index: cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
===================================================================
--- cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -492,6 +492,8 @@
   case MT_Unknown:
     llvm_unreachable("invalid modifier type");
   }
+  // Unhandled case
+  llvm_unreachable("invalid modifier type");
 }
 
 struct Piece {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47150.147814.patch
Type: text/x-patch
Size: 423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180521/2e84d19b/attachment-0001.bin>


More information about the cfe-commits mailing list