From 097bb7acb3ca70f46b80b02ee5cfcf2dcb17ee77 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 3 May 2016 22:37:12 +0000 Subject: [PATCH] Fix template type deduction error on some compilers. llvm-svn: 268458 --- llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp b/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp index 8fb1d87..0467fda 100644 --- a/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp +++ b/llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp @@ -154,7 +154,7 @@ static void dumpBytes(raw_ostream &S, StringRef Bytes, uint32_t BytesPerRow, S << "["; while (!Bytes.empty()) { - uint32_t BytesThisLine = std::min(Bytes.size(), BytesPerRow); + size_t BytesThisLine = std::min(Bytes.size(), BytesPerRow); while (BytesThisLine > 0) { S << format_hex_no_prefix(uint8_t(Bytes.front()), 2, true); Bytes = Bytes.drop_front(); -- 2.7.4