[WebAssembly] Fix copy-paste error in debugging string

llvm-svn: 326326
This commit is contained in:
Nicholas Wilson 2018-02-28 14:03:18 +00:00
parent 06d4181140
commit 7e4eee9831
1 changed files with 1 additions and 1 deletions

View File

@ -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<GenericBinaryError>("invalid data symbol index",
return make_error<GenericBinaryError>("invalid data symbol offset",
object_error::parse_failed);
Info.DataRef = wasm::WasmDataReference{Index, Offset, Size};
}