diff options
author | Reid Kleckner <rnk@google.com> | 2016-04-21 22:37:55 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-04-21 22:37:55 +0000 |
commit | a1d19be01d4a93564a4f255031b5d3d47000031c (patch) | |
tree | c9f8386ae1d994f07a3e1e6ba4c146fb42fb4381 /tools | |
parent | 4913b3f2cf4e77fab3d6cbf12092ba34c8cccb28 (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.cpp | 2 |
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'; } |