[lld] r271133 - Simplify. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sat May 28 11:40:39 PDT 2016
Author: ruiu
Date: Sat May 28 13:40:38 2016
New Revision: 271133
URL: http://llvm.org/viewvc/llvm-project?rev=271133&view=rev
Log:
Simplify. NFC.
Modified:
lld/trunk/ELF/InputSection.cpp
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=271133&r1=271132&r2=271133&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Sat May 28 13:40:38 2016
@@ -544,8 +544,7 @@ typename ELFT::uint MergeInputSection<EL
SectionPiece &Piece = *this->getSectionPiece(Offset);
assert(Piece.Live);
uintX_t Addend = Offset - Piece.InputOff;
- uintX_t Ret = Piece.OutputOff + Addend;
- return Ret;
+ return Piece.OutputOff + Addend;
}
// Create a map from input offsets to output offsets for all section pieces.
More information about the llvm-commits
mailing list