Skip to content

Commit

Permalink
NFC, Avoid a warning in WasmObjectWriter
Browse files Browse the repository at this point in the history
The warning was (introduced in r331220):

lib/MC/WasmObjectWriter.cpp:51:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

llvm-svn: 331251
  • Loading branch information
GBuella committed May 1, 2018
1 parent c1a7754 commit 0537fdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/MC/WasmObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ static std::string toString(wasm::WasmSymbolType type) {
return "WASM_SYMBOL_TYPE_DATA";
case wasm::WASM_SYMBOL_TYPE_SECTION:
return "WASM_SYMBOL_TYPE_SECTION";
default:
llvm_unreachable("unexpected kind");
}
}

Expand Down

0 comments on commit 0537fdb

Please sign in to comment.