mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Fix a -Wsign-compare warning in LoopAccessAnalysis.cpp
llvm-svn: 313753
This commit is contained in:
parent
6c9eb841b2
commit
ae1097a240
@ -1143,7 +1143,8 @@ bool llvm::sortLoadAccesses(ArrayRef<Value *> VL, const DataLayout &DL,
|
||||
// The pointers may not have a constant offset from each other, or SCEV
|
||||
// may just not be smart enough to figure out they do. Regardless,
|
||||
// there's nothing we can do.
|
||||
if (!Diff || Diff->getAPInt().abs().getSExtValue() > (VL.size() - 1) * Size)
|
||||
if (!Diff || Diff->getAPInt().abs().getSExtValue() >
|
||||
static_cast<int64_t>((VL.size() - 1) * Size))
|
||||
return false;
|
||||
|
||||
OffValPairs.emplace_back(Diff->getAPInt().getSExtValue(), Val);
|
||||
|
Loading…
Reference in New Issue
Block a user