Skip to content

Commit

Permalink
[DeviceSanitizer] Update AddressSanitizer.cpp for coverity fix (#16328)
Browse files Browse the repository at this point in the history
Avoid a auto copy.
  • Loading branch information
yingcong-wu authored Dec 12, 2024
1 parent 2b13529 commit 046c807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ static void ExtendSpirKernelArgs(Module &M, FunctionAnalysisManager &FAM,
SmallVector<Function *> SpirFixupKernels;
SmallVector<Constant *, 8> SpirKernelsMetadata;

auto DL = M.getDataLayout();
const auto &DL = M.getDataLayout();
Type *IntptrTy = DL.getIntPtrType(M.getContext());

// SpirKernelsMetadata only saves fixed kernels, and is described by
Expand Down

0 comments on commit 046c807

Please sign in to comment.