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:
Michael Kruse 2016-09-13 09:56:05 +00:00
parent d547ac0df9
commit 19c9d99f45
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}