forked from OSchip/llvm-project
[WebAssembly] Remove redundant check global output index
llvm-svn: 324715
This commit is contained in:
parent
76854e7daa
commit
77d4edcf05
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue