diff options
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp b/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp index b8c1feaeb3b..529f6703789 100644 --- a/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp @@ -58,7 +58,7 @@ GlobalsStream::findRecordsByName(StringRef Name, uint32_t ChainStartOffset = GlobalsTable.HashBuckets[CompressedBucketIndex]; uint32_t NextChainStart = GlobalsTable.HashBuckets.size(); - if (CompressedBucketIndex + 1 < GlobalsTable.HashBuckets.size()) + if (static_cast<uint32_t>(CompressedBucketIndex + 1) < NextChainStart) NextChainStart = GlobalsTable.HashBuckets[CompressedBucketIndex + 1]; ChainStartOffset /= 12; NextChainStart /= 12; |