From ca4ee46f91fd88d59312845460065936b39f94a4 Mon Sep 17 00:00:00 2001 From: Wu Yingcong Date: Wed, 11 Dec 2024 17:41:11 +0800 Subject: [PATCH] Update AddressSanitizer.cpp --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 955bcc2d3ff27..bd8c0f197c94a 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -1322,7 +1322,7 @@ static void ExtendSpirKernelArgs(Module &M, FunctionAnalysisManager &FAM, SmallVector SpirFixupKernels; SmallVector 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