Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit a8a81e0

Browse files
committed
[WebAssembly] Remove redundant check global output index
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@324715 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 30f5778 commit a8a81e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wasm/InputFiles.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ uint32_t ObjFile::relocateTableIndex(uint32_t Original) const {
7777

7878
uint32_t ObjFile::relocateGlobalIndex(uint32_t Original) const {
7979
const Symbol *Sym = getGlobalSymbol(Original);
80-
uint32_t Index = Sym->hasOutputIndex() ? Sym->getOutputIndex() : 0;
80+
uint32_t Index = Sym->getOutputIndex();
8181
DEBUG(dbgs() << "relocateGlobalIndex: " << toString(*Sym) << ": " << Original
8282
<< " -> " << Index << "\n");
8383
return Index;

0 commit comments

Comments
 (0)