diff options
| author | Jeremy Morse <jeremy.morse@sony.com> | 2021-10-18 10:26:09 +0100 |
|---|---|---|
| committer | Jeremy Morse <jeremy.morse@sony.com> | 2021-10-18 10:28:52 +0100 |
| commit | ea970661dc74505da6c45f6c83579aabb115ecc5 (patch) | |
| tree | 4b2658cc3cff1f595bb87805d20cd75522e8cf73 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | |
| parent | 012248b0bc8e638d96db22dd091adca2ef9549db (diff) | |
Fix signed/unsigned comparison after b5426ced71280
gcc11 warns that this counter causes a signed/unsigned comaprison when it's
later compared with a SmallVector::difference_type. gcc appears to be
correct, clang does not warn one way or the other.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp index 32937666ea7a..1dde668c991a 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp @@ -2175,7 +2175,7 @@ bool InstrRefBasedLDV::vlocJoin( // live-out values. SmallVector<InValueT, 8> Values; bool Bail = false; - unsigned BackEdgesStart = 0; + int BackEdgesStart = 0; for (auto p : BlockOrders) { // If the predecessor isn't in scope / to be explored, we'll never be // able to join any locations. |
