[llvm] 9df9dec - Fix signed/unsigned comparison warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 03:52:16 PST 2019
Author: Simon Pilgrim
Date: 2019-11-18T11:34:34Z
New Revision: 9df9dec926e2782e4f62b5a39f18619c7d928eba
URL: https://github.com/llvm/llvm-project/commit/9df9dec926e2782e4f62b5a39f18619c7d928eba
DIFF: https://github.com/llvm/llvm-project/commit/9df9dec926e2782e4f62b5a39f18619c7d928eba.diff
LOG: Fix signed/unsigned comparison warning. NFCI.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp b/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
index c76fb031d688..72c347e00519 100644
--- a/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
+++ b/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
@@ -407,7 +407,7 @@ bool PPCLoopPreIncPrep::prepareBaseForDispFormChain(Bucket &BucketChain,
// remainder 1 and the other for remainder 2, thus we could get 19 DS form and 1
// X form.
unsigned MaxCountRemainder = 0;
- for (unsigned j = 0; j < Form; j++)
+ for (unsigned j = 0; j < (unsigned)Form; j++)
if ((RemainderOffsetInfo.find(j) != RemainderOffsetInfo.end()) &&
RemainderOffsetInfo[j].second >
RemainderOffsetInfo[MaxCountRemainder].second)
More information about the llvm-commits
mailing list