[PATCH] D46304: [MC] Add llvm_unreachable to toString to fix compile time warning.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 1 04:23:10 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL331255: [MC] Add llvm_unreachable to toString to fix compile time warning. (authored by fhahn, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D46304?vs=144681&id=144692#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46304

Files:
  llvm/trunk/lib/MC/WasmObjectWriter.cpp


Index: llvm/trunk/lib/MC/WasmObjectWriter.cpp
===================================================================
--- llvm/trunk/lib/MC/WasmObjectWriter.cpp
+++ llvm/trunk/lib/MC/WasmObjectWriter.cpp
@@ -47,9 +47,8 @@
     return "WASM_SYMBOL_TYPE_DATA";
   case wasm::WASM_SYMBOL_TYPE_SECTION:
     return "WASM_SYMBOL_TYPE_SECTION";
-  default:
-    llvm_unreachable("unexpected kind");
   }
+  llvm_unreachable("unknown symbol type");
 }
 
 static std::string relocTypetoString(uint32_t type) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46304.144692.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180501/88be179f/attachment.bin>


More information about the llvm-commits mailing list