[llvm] 210cbcf - [WebAssemlby][Object] Fix dead code in WasmObjectFile.cpp
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 29 08:10:14 PDT 2021
Author: Sam Clegg
Date: 2021-09-29T08:09:57-07:00
New Revision: 210cbcf4767bca807ee3e105f785d26c3a976cde
URL: https://github.com/llvm/llvm-project/commit/210cbcf4767bca807ee3e105f785d26c3a976cde
DIFF: https://github.com/llvm/llvm-project/commit/210cbcf4767bca807ee3e105f785d26c3a976cde.diff
LOG: [WebAssemlby][Object] Fix dead code in WasmObjectFile.cpp
I introduced this by mistake in https://reviews.llvm.org/D109595.
Differential Revision: https://reviews.llvm.org/D110717
Added:
Modified:
llvm/lib/Object/WasmObjectFile.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp
index 300d08fd39d7c..524a691a495d6 100644
--- a/llvm/lib/Object/WasmObjectFile.cpp
+++ b/llvm/lib/Object/WasmObjectFile.cpp
@@ -392,8 +392,7 @@ Error WasmObjectFile::parseDylink0Section(ReadContext &Ctx) {
break;
}
default:
- return make_error<GenericBinaryError>("unknown dylink.0 sub-section",
- object_error::parse_failed);
+ LLVM_DEBUG(dbgs() << "unknown dylink.0 sub-section: " << Type << "\n");
Ctx.Ptr += Size;
break;
}
More information about the llvm-commits
mailing list