Skip to content
Snippets Groups Projects
Commit 19c9d99f authored by Michael Kruse's avatar Michael Kruse
Browse files

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
parent d547ac0d
No related branches found
No related tags found
No related merge requests found
...@@ -220,8 +220,8 @@ bool ScopArrayInfo::updateSizes(ArrayRef<const SCEV *> NewSizes) { ...@@ -220,8 +220,8 @@ bool ScopArrayInfo::updateSizes(ArrayRef<const SCEV *> NewSizes) {
int ExtraDimsOld = DimensionSizes.size() - SharedDims; int ExtraDimsOld = DimensionSizes.size() - SharedDims;
for (int i = 0; i < SharedDims; i++) { for (int i = 0; i < SharedDims; i++) {
auto &NewSize = NewSizes[i + ExtraDimsNew]; auto *NewSize = NewSizes[i + ExtraDimsNew];
auto &KnownSize = DimensionSizes[i + ExtraDimsOld]; auto *KnownSize = DimensionSizes[i + ExtraDimsOld];
if (NewSize && KnownSize && NewSize != KnownSize) if (NewSize && KnownSize && NewSize != KnownSize)
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment