summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-04-21 22:37:55 +0000
committerReid Kleckner <rnk@google.com>2016-04-21 22:37:55 +0000
commita1d19be01d4a93564a4f255031b5d3d47000031c (patch)
treec9f8386ae1d994f07a3e1e6ba4c146fb42fb4381 /tools
parent4913b3f2cf4e77fab3d6cbf12092ba34c8cccb28 (diff)
Fix PDB warnings and test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-pdbdump/llvm-pdbdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-pdbdump/llvm-pdbdump.cpp b/tools/llvm-pdbdump/llvm-pdbdump.cpp
index cd76b4be4d1..c114b892620 100644
--- a/tools/llvm-pdbdump/llvm-pdbdump.cpp
+++ b/tools/llvm-pdbdump/llvm-pdbdump.cpp
@@ -192,7 +192,7 @@ static void dumpStructure(RawSession &RS) {
outs() << "NumStreams: " << File.getNumStreams() << '\n';
uint32_t StreamCount = File.getNumStreams();
if (opts::DumpStreamSizes) {
- for (uint32_t StreamIdx = 0; StreamCount; ++StreamIdx)
+ for (uint32_t StreamIdx = 0; StreamIdx < StreamCount; ++StreamIdx)
outs() << "StreamSizes[" << StreamIdx
<< "]: " << File.getStreamByteSize(StreamIdx) << '\n';
}