diff options
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r-- | llvm/lib/Object/WasmObjectFile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index 167b8c25c2b..45e343f8f47 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -319,8 +319,8 @@ Error WasmObjectFile::parseSection(WasmSection &Sec) { case wasm::WASM_SEC_DATACOUNT: return parseDataCountSection(Ctx); default: - return make_error<GenericBinaryError>("Bad section type", - object_error::parse_failed); + return make_error<GenericBinaryError>( + "Invalid section type: " + Twine(Sec.Type), object_error::parse_failed); } } @@ -1607,7 +1607,7 @@ int WasmSectionOrderChecker::getSectionOrder(unsigned ID, case wasm::WASM_SEC_EVENT: return WASM_SEC_ORDER_EVENT; default: - llvm_unreachable("invalid section"); + return WASM_SEC_ORDER_NONE; } } |