summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-03-01 21:28:41 +0000
committerRui Ueyama <ruiu@google.com>2017-03-01 21:28:41 +0000
commit962a83fbe96b35d6fa0ade694d32eb0d08e21ee3 (patch)
treed5480d6420b9b1d818f974bae283e2a36714866d
parentc2f151084d3ae3d9c04d0d7125c863612f8c34f5 (diff)
downloadbcm5719-llvm-962a83fbe96b35d6fa0ade694d32eb0d08e21ee3.tar.gz
bcm5719-llvm-962a83fbe96b35d6fa0ade694d32eb0d08e21ee3.zip
Unbreak Windows bots.
llvm-svn: 296680
-rw-r--r--lld/ELF/GdbIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/GdbIndex.cpp b/lld/ELF/GdbIndex.cpp
index 592a9acada5..a7c002cfe37 100644
--- a/lld/ELF/GdbIndex.cpp
+++ b/lld/ELF/GdbIndex.cpp
@@ -116,7 +116,7 @@ std::pair<bool, GdbSymbol *> GdbHashTab::add(uint32_t Hash, size_t Offset) {
}
void GdbHashTab::finalizeContents() {
- Table.resize(std::max(1024UL, NextPowerOf2(Map.size() * 4 / 3)));
+ Table.resize(std::max<uint64_t>(1024, NextPowerOf2(Map.size() * 4 / 3)));
for (auto &P : Map) {
GdbSymbol *Sym = P.second;
OpenPOWER on IntegriCloud