summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbutil/FormatUtil.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-07-05 21:59:20 +0000
committerZachary Turner <zturner@google.com>2017-07-05 21:59:20 +0000
commit91dcab417c88869d6495765434d3348ba1e626cf (patch)
treef9aa1e426d1341569c8cd2f1f52b7d5cdd1c3e95 /llvm/tools/llvm-pdbutil/FormatUtil.cpp
parent8120ebf4c7b5ff6b88b586fb369eff333517262f (diff)
downloadbcm5719-llvm-91dcab417c88869d6495765434d3348ba1e626cf.tar.gz
bcm5719-llvm-91dcab417c88869d6495765434d3348ba1e626cf.zip
Fix std::min ambiguity between uint32 and size_t.
llvm-svn: 307205
Diffstat (limited to 'llvm/tools/llvm-pdbutil/FormatUtil.cpp')
-rw-r--r--llvm/tools/llvm-pdbutil/FormatUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-pdbutil/FormatUtil.cpp b/llvm/tools/llvm-pdbutil/FormatUtil.cpp
index 5a94e038d0b..46a1774f166 100644
--- a/llvm/tools/llvm-pdbutil/FormatUtil.cpp
+++ b/llvm/tools/llvm-pdbutil/FormatUtil.cpp
@@ -21,7 +21,7 @@ std::string llvm::pdb::truncateStringBack(StringRef S, uint32_t MaxLen) {
return S;
assert(MaxLen >= 3);
- uint32_t FinalLen = std::min(S.size(), MaxLen - 3);
+ uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3);
S = S.take_front(FinalLen);
return std::string(S) + std::string("...");
}
OpenPOWER on IntegriCloud