[llvm] r305770 - [WebAssembly] Fix build failures introduced in r305769
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 19 21:47:58 PDT 2017
Author: sbc
Date: Mon Jun 19 23:47:58 2017
New Revision: 305770
URL: http://llvm.org/viewvc/llvm-project?rev=305770&view=rev
Log:
[WebAssembly] Fix build failures introduced in r305769
This fixes two build failures that only occur in certain
configurations:
- error: unused function 'operator<<'
- error: control reaches end of non-void function
Differential Revision: https://reviews.llvm.org/D34382
Modified:
llvm/trunk/lib/MC/WasmObjectWriter.cpp
llvm/trunk/lib/Object/WasmObjectFile.cpp
Modified: llvm/trunk/lib/MC/WasmObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WasmObjectWriter.cpp?rev=305770&r1=305769&r2=305770&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WasmObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WasmObjectWriter.cpp Mon Jun 19 23:47:58 2017
@@ -162,8 +162,7 @@ struct WasmRelocationEntry {
#endif
};
-inline raw_ostream &operator<<(raw_ostream &OS,
- const WasmRelocationEntry &Rel) {
+raw_ostream &operator<<(raw_ostream &OS, const WasmRelocationEntry &Rel) {
Rel.print(OS);
return OS;
}
Modified: llvm/trunk/lib/Object/WasmObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/WasmObjectFile.cpp?rev=305770&r1=305769&r2=305770&view=diff
==============================================================================
--- llvm/trunk/lib/Object/WasmObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/WasmObjectFile.cpp Mon Jun 19 23:47:58 2017
@@ -753,6 +753,7 @@ uint64_t WasmObjectFile::getSymbolValueI
case WasmSymbol::SymbolType::DEBUG_FUNCTION_NAME:
return Sym.ElementIndex;
}
+ llvm_unreachable("invalid symbol type");
}
uint32_t WasmObjectFile::getSymbolAlignment(DataRefImpl Symb) const {
More information about the llvm-commits
mailing list