OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a7ebe
)
NFC, Avoid a warning in WasmObjectWriter
author
Gabor Buella
<gabor.buella@intel.com>
Tue, 1 May 2018 10:21:10 +0000
(10:21 +0000)
committer
Gabor Buella
<gabor.buella@intel.com>
Tue, 1 May 2018 10:21:10 +0000
(10:21 +0000)
The warning was (introduced in r331220):
lib/MC/WasmObjectWriter.cpp:51:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331251
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/WasmObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/WasmObjectWriter.cpp
b/lib/MC/WasmObjectWriter.cpp
index
26dea0a
..
fa26a28
100644
(file)
--- a/
lib/MC/WasmObjectWriter.cpp
+++ b/
lib/MC/WasmObjectWriter.cpp
@@
-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");
}
}