summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gold
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 7f38a021a0a..ecc7527cb7e 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -626,7 +626,8 @@ static void addModule(LTO &Lto, claimed_file &F, const void *View) {
CommonRes.Prevailing = true;
CommonRes.VisibleToRegularObj = R.VisibleToRegularObj;
}
- CommonRes.Size = std::max(CommonRes.Size, ObjSym.getCommonSize());
+ CommonRes.Size = std::max(CommonRes.Size,
+ static_cast<uint64_t>(ObjSym.getCommonSize()));
CommonRes.Align = std::max(CommonRes.Align, ObjSym.getCommonAlignment());
R.Prevailing = false;
}
OpenPOWER on IntegriCloud