[llvm] r299736 - [WebAssembly] Fix -Wcovered-switch-default warning
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 6 16:52:01 PDT 2017
Author: dschuff
Date: Thu Apr 6 18:52:01 2017
New Revision: 299736
URL: http://llvm.org/viewvc/llvm-project?rev=299736&view=rev
Log:
[WebAssembly] Fix -Wcovered-switch-default warning
Modified:
llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp?rev=299736&r1=299735&r2=299736&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp Thu Apr 6 18:52:01 2017
@@ -253,7 +253,6 @@ const char *llvm::WebAssembly::TypeToStr
return "f32";
case wasm::ValType::F64:
return "f64";
- default:
- llvm_unreachable("unsupported type");
}
+ llvm_unreachable("unsupported type");
}
More information about the llvm-commits
mailing list