From 7e4eee98311dcecc782a93265e62934570e096c1 Mon Sep 17 00:00:00 2001 From: Nicholas Wilson Date: Wed, 28 Feb 2018 14:03:18 +0000 Subject: [PATCH] [WebAssembly] Fix copy-paste error in debugging string llvm-svn: 326326 --- llvm/lib/Object/WasmObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index 4ae2d3bcaf63..f32f57b8ba1f 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -455,7 +455,7 @@ Error WasmObjectFile::parseLinkingSectionSymtab(const uint8_t *&Ptr, uint32_t Offset = readVaruint32(Ptr); uint32_t Size = readVaruint32(Ptr); if (Offset + Size > DataSegments[Index].Data.Content.size()) - return make_error("invalid data symbol index", + return make_error("invalid data symbol offset", object_error::parse_failed); Info.DataRef = wasm::WasmDataReference{Index, Offset, Size}; }