LLD: Fix large integer implicitly truncated to unsigned type gcc warning
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 23 Oct 2017 19:31:31 +0000 (19:31 +0000)
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 23 Oct 2017 19:31:31 +0000 (19:31 +0000)
This fixes gcc warning.

Change by Brian Sumner

llvm-svn: 316365

lld/ELF/InputSection.h

index 853b638..4453da8 100644 (file)
@@ -220,7 +220,7 @@ struct SectionPiece {
 
   uint32_t InputOff;
   uint32_t Hash;
-  uint64_t OutputOff : 63;
+  int64_t OutputOff : 63;
   uint64_t Live : 1;
 };