aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-06-20 04:47:58 +0000
committerSam Clegg <sbc@chromium.org>2017-06-20 04:47:58 +0000
commit7f055dee27e5144dab71dd04e673ca048ae3c7b2 (patch)
tree0300ebef080c3c1cd42384cf7783688851327739 /llvm/lib/Object/WasmObjectFile.cpp
parentb7787fd076f307a09075108525bdbabb44cd7373 (diff)
downloadllvm-7f055dee27e5144dab71dd04e673ca048ae3c7b2.zip
llvm-7f055dee27e5144dab71dd04e673ca048ae3c7b2.tar.gz
llvm-7f055dee27e5144dab71dd04e673ca048ae3c7b2.tar.bz2
[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 llvm-svn: 305770
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
-rw-r--r--llvm/lib/Object/WasmObjectFile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp
index ba53f3e..d158606 100644
--- a/llvm/lib/Object/WasmObjectFile.cpp
+++ b/llvm/lib/Object/WasmObjectFile.cpp
@@ -753,6 +753,7 @@ uint64_t WasmObjectFile::getSymbolValueImpl(DataRefImpl Symb) const {
case WasmSymbol::SymbolType::DEBUG_FUNCTION_NAME:
return Sym.ElementIndex;
}
+ llvm_unreachable("invalid symbol type");
}
uint32_t WasmObjectFile::getSymbolAlignment(DataRefImpl Symb) const {