forked from OSchip/llvm-project
[WASM] Remove a set but never used variable.
llvm-svn: 299312
This commit is contained in:
parent
543760218a
commit
deede839f2
|
@ -458,11 +458,8 @@ Error WasmObjectFile::parseGlobalSection(const uint8_t *Ptr, const uint8_t *End)
|
||||||
wasm::WasmGlobal Global;
|
wasm::WasmGlobal Global;
|
||||||
Global.Type = readVarint7(Ptr);
|
Global.Type = readVarint7(Ptr);
|
||||||
Global.Mutable = readVaruint1(Ptr);
|
Global.Mutable = readVaruint1(Ptr);
|
||||||
size_t offset = Ptr - getPtr(0);
|
if (Error Err = readInitExpr(Global.InitExpr, Ptr))
|
||||||
if (Error Err = readInitExpr(Global.InitExpr, Ptr)) {
|
|
||||||
offset = Ptr - getPtr(0);
|
|
||||||
return Err;
|
return Err;
|
||||||
}
|
|
||||||
Globals.push_back(Global);
|
Globals.push_back(Global);
|
||||||
}
|
}
|
||||||
if (Ptr != End)
|
if (Ptr != End)
|
||||||
|
|
Loading…
Reference in New Issue