Simplify. NFC.

llvm-svn: 271133
This commit is contained in:
Rui Ueyama 2016-05-28 18:40:38 +00:00
parent c165c889ab
commit 8b972d221e
1 changed files with 1 additions and 2 deletions

View File

@ -544,8 +544,7 @@ typename ELFT::uint MergeInputSection<ELFT>::getOffset(uintX_t Offset) {
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.