[WebAssembly] Remove redundant check global output index

llvm-svn: 324715
This commit is contained in:
Sam Clegg 2018-02-09 07:09:12 +00:00
parent 76854e7daa
commit 77d4edcf05
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ uint32_t ObjFile::relocateTableIndex(uint32_t Original) const {
uint32_t ObjFile::relocateGlobalIndex(uint32_t Original) const {
const Symbol *Sym = getGlobalSymbol(Original);
uint32_t Index = Sym->hasOutputIndex() ? Sym->getOutputIndex() : 0;
uint32_t Index = Sym->getOutputIndex();
DEBUG(dbgs() << "relocateGlobalIndex: " << toString(*Sym) << ": " << Original
<< " -> " << Index << "\n");
return Index;