diff options
| -rw-r--r-- | lld/ELF/InputSection.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index bcdf5b4ff79..49a2c1b625a 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -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. |

