Skip to content

Commit 2b81c1c

Browse files
yingcong-wuKornevNikita
authored andcommitted
[DeviceSanitizer] Update AddressSanitizer.cpp for coverity fix (#16328)
Avoid a auto copy.
1 parent 7f10527 commit 2b81c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ static void ExtendSpirKernelArgs(Module &M, FunctionAnalysisManager &FAM,
13221322
SmallVector<Function *> SpirFixupKernels;
13231323
SmallVector<Constant *, 8> SpirKernelsMetadata;
13241324

1325-
auto DL = M.getDataLayout();
1325+
const auto &DL = M.getDataLayout();
13261326
Type *IntptrTy = DL.getIntPtrType(M.getContext());
13271327

13281328
// SpirKernelsMetadata only saves fixed kernels, and is described by

0 commit comments

Comments
 (0)