forked from OSchip/llvm-project
Use value directly instead of reference. NFC.
The alias to the array element is read-only and a primitive type (pointer), therefore use the value directly instead of a reference to it. llvm-svn: 281311
This commit is contained in:
parent
d547ac0df9
commit
19c9d99f45
|
@ -220,8 +220,8 @@ bool ScopArrayInfo::updateSizes(ArrayRef<const SCEV *> NewSizes) {
|
|||
int ExtraDimsOld = DimensionSizes.size() - SharedDims;
|
||||
|
||||
for (int i = 0; i < SharedDims; i++) {
|
||||
auto &NewSize = NewSizes[i + ExtraDimsNew];
|
||||
auto &KnownSize = DimensionSizes[i + ExtraDimsOld];
|
||||
auto *NewSize = NewSizes[i + ExtraDimsNew];
|
||||
auto *KnownSize = DimensionSizes[i + ExtraDimsOld];
|
||||
if (NewSize && KnownSize && NewSize != KnownSize)
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue