[PATCH] D63694: [lld/WebAssembly] Slightly nicer error message for malformed input files
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 17:53:51 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL364368: [lld/WebAssembly] Slightly nicer error message for malformed input files (authored by kfischer, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D63694?vs=206547&id=206569#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63694/new/
https://reviews.llvm.org/D63694
Files:
lld/trunk/test/wasm/corrupted.wasm.test
lld/trunk/wasm/InputFiles.cpp
Index: lld/trunk/wasm/InputFiles.cpp
===================================================================
--- lld/trunk/wasm/InputFiles.cpp
+++ lld/trunk/wasm/InputFiles.cpp
@@ -52,7 +52,8 @@
StringRef ArchiveName) {
file_magic Magic = identify_magic(MB.getBuffer());
if (Magic == file_magic::wasm_object) {
- std::unique_ptr<Binary> Bin = check(createBinary(MB));
+ std::unique_ptr<Binary> Bin =
+ CHECK(createBinary(MB), MB.getBufferIdentifier());
auto *Obj = cast<WasmObjectFile>(Bin.get());
if (Obj->isSharedObject())
return make<SharedFile>(MB);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63694.206569.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190626/e0a4299d/attachment-0001.bin>
More information about the llvm-commits
mailing list