[lld] r316365 - LLD: Fix large integer implicitly truncated to unsigned type gcc warning
Konstantin Zhuravlyov via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 12:31:32 PDT 2017
Author: kzhuravl
Date: Mon Oct 23 12:31:31 2017
New Revision: 316365
URL: http://llvm.org/viewvc/llvm-project?rev=316365&view=rev
Log:
LLD: Fix large integer implicitly truncated to unsigned type gcc warning
This fixes gcc warning.
Change by Brian Sumner
Modified:
lld/trunk/ELF/InputSection.h
Modified: lld/trunk/ELF/InputSection.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.h?rev=316365&r1=316364&r2=316365&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.h (original)
+++ lld/trunk/ELF/InputSection.h Mon Oct 23 12:31:31 2017
@@ -220,7 +220,7 @@ struct SectionPiece {
uint32_t InputOff;
uint32_t Hash;
- uint64_t OutputOff : 63;
+ int64_t OutputOff : 63;
uint64_t Live : 1;
};
More information about the llvm-commits
mailing list