[llvm] r299195 - Fix MSVC 'not all control paths return a value' warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 31 03:46:47 PDT 2017
Author: rksimon
Date: Fri Mar 31 05:46:47 2017
New Revision: 299195
URL: http://llvm.org/viewvc/llvm-project?rev=299195&view=rev
Log:
Fix MSVC 'not all control paths return a value' warning
Modified:
llvm/trunk/lib/Object/WasmObjectFile.cpp
Modified: llvm/trunk/lib/Object/WasmObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/WasmObjectFile.cpp?rev=299195&r1=299194&r2=299195&view=diff
==============================================================================
--- llvm/trunk/lib/Object/WasmObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/WasmObjectFile.cpp Fri Mar 31 05:46:47 2017
@@ -609,6 +609,7 @@ uint32_t WasmObjectFile::getSymbolFlags(
case WasmSymbol::SymbolType::GLOBAL_EXPORT:
return object::SymbolRef::SF_Global;
}
+ llvm_unreachable("Unknown WasmSymbol::SymbolType");
}
basic_symbol_iterator WasmObjectFile::symbol_begin() const {
More information about the llvm-commits
mailing list