[WASM] Remove a set but never used variable.

llvm-svn: 299312
This commit is contained in:
Davide Italiano 2017-04-01 19:40:51 +00:00
parent 543760218a
commit deede839f2
1 changed files with 1 additions and 4 deletions

View File

@ -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)