From 7f055dee27e5144dab71dd04e673ca048ae3c7b2 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 20 Jun 2017 04:47:58 +0000 Subject: [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 --- llvm/lib/Object/WasmObjectFile.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Object') diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index ba53f3e0076..d15860674ae 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 { -- cgit v1.2.3