Skip to content

Commit 588205a

Browse files
authored
[NFC] Fix 'auto causes copy' in SpecConstants.cpp (#17526)
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
1 parent d865c0c commit 588205a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/SpecConstants.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ Instruction *emitSpecConstantRecursiveImpl(
639639
ElTy, InsertBefore, IDs, Index, ElOffset, DefinedElements));
640640
};
641641

642-
auto DL = M.getDataLayout();
642+
const auto &DL = M.getDataLayout();
643643
if (auto *ArrTy = dyn_cast<ArrayType>(Ty)) {
644644
uint64_t ElSize = DL.getTypeAllocSize(ArrTy->getElementType());
645645
for (size_t I = 0; I < ArrTy->getNumElements(); ++I)

0 commit comments

Comments
 (0)