[lld] r324715 - [WebAssembly] Remove redundant check global output index
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 8 23:09:12 PST 2018
Author: sbc
Date: Thu Feb 8 23:09:12 2018
New Revision: 324715
URL: http://llvm.org/viewvc/llvm-project?rev=324715&view=rev
Log:
[WebAssembly] Remove redundant check global output index
Modified:
lld/trunk/wasm/InputFiles.cpp
Modified: lld/trunk/wasm/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputFiles.cpp?rev=324715&r1=324714&r2=324715&view=diff
==============================================================================
--- lld/trunk/wasm/InputFiles.cpp (original)
+++ lld/trunk/wasm/InputFiles.cpp Thu Feb 8 23:09:12 2018
@@ -77,7 +77,7 @@ uint32_t ObjFile::relocateTableIndex(uin
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;
More information about the llvm-commits
mailing list