[llvm] r331251 - NFC, Avoid a warning in WasmObjectWriter
Gabor Buella via llvm-commits
llvm-commits at lists.llvm.org
Tue May 1 03:21:10 PDT 2018
Author: gbuella
Date: Tue May 1 03:21:10 2018
New Revision: 331251
URL: http://llvm.org/viewvc/llvm-project?rev=331251&view=rev
Log:
NFC, Avoid a warning in WasmObjectWriter
The warning was (introduced in r331220):
lib/MC/WasmObjectWriter.cpp:51:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Modified:
llvm/trunk/lib/MC/WasmObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WasmObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WasmObjectWriter.cpp?rev=331251&r1=331250&r2=331251&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WasmObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WasmObjectWriter.cpp Tue May 1 03:21:10 2018
@@ -47,6 +47,8 @@ static std::string toString(wasm::WasmSy
return "WASM_SYMBOL_TYPE_DATA";
case wasm::WASM_SYMBOL_TYPE_SECTION:
return "WASM_SYMBOL_TYPE_SECTION";
+ default:
+ llvm_unreachable("unexpected kind");
}
}
More information about the llvm-commits
mailing list