projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5437602
)
[WASM] Remove a set but never used variable.
author
Davide Italiano
<davide@freebsd.org>
Sat, 1 Apr 2017 19:40:51 +0000
(19:40 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Sat, 1 Apr 2017 19:40:51 +0000
(19:40 +0000)
llvm-svn: 299312
llvm/lib/Object/WasmObjectFile.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Object/WasmObjectFile.cpp
b/llvm/lib/Object/WasmObjectFile.cpp
index
18c535a
..
ddde859
100644
(file)
--- a/
llvm/lib/Object/WasmObjectFile.cpp
+++ b/
llvm/lib/Object/WasmObjectFile.cpp
@@
-458,11
+458,8
@@
Error WasmObjectFile::parseGlobalSection(const uint8_t *Ptr, const uint8_t *End)
wasm::WasmGlobal Global;
Global.Type = readVarint7(Ptr);
Global.Mutable = readVaruint1(Ptr);
- size_t offset = Ptr - getPtr(0);
- if (Error Err = readInitExpr(Global.InitExpr, Ptr)) {
- offset = Ptr - getPtr(0);
+ if (Error Err = readInitExpr(Global.InitExpr, Ptr))
return Err;
- }
Globals.push_back(Global);
}
if (Ptr != End)