From 8b972d221e9f4afb18c03bd87e78778dec2f87e9 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 28 May 2016 18:40:38 +0000 Subject: [PATCH] Simplify. NFC. llvm-svn: 271133 --- lld/ELF/InputSection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index bcdf5b4ff796..49a2c1b625a7 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -544,8 +544,7 @@ typename ELFT::uint MergeInputSection::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.