[llvm] 0328005 - Fix MSVC "not all control paths return a value" warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 7 12:02:57 PDT 2020
Author: Simon Pilgrim
Date: 2020-10-07T19:53:39+01:00
New Revision: 03280055154d09940a72d77f11c76dc7a741ba32
URL: https://github.com/llvm/llvm-project/commit/03280055154d09940a72d77f11c76dc7a741ba32
DIFF: https://github.com/llvm/llvm-project/commit/03280055154d09940a72d77f11c76dc7a741ba32.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFCI.
Added:
Modified:
llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
index 5e4cbdb42988..ad0bbd110077 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
@@ -124,6 +124,7 @@ static char getInvokeSig(wasm::ValType VT) {
case wasm::ValType::EXTERNREF:
return 'X';
}
+ llvm_unreachable("Unhandled wasm::ValType enum");
}
// Given the wasm signature, generate the invoke name in the format JS glue code
More information about the llvm-commits
mailing list