Skip to content

Commit 2e148cb

Browse files
committed
nit
1 parent 7e8641a commit 2e148cb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

llvm/lib/SYCLLowerIR/SanitizeDeviceGlobal.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ static bool instrumentDeviceGlobal(Module &M) {
5050
if (!isDeviceGlobalVariable(G) || !hasDeviceImageScopeProperty(G))
5151
continue;
5252

53+
// Skip instrumenting on "__AsanKernelMetadata" etc.
5354
if (G.getName().starts_with("__Asan"))
5455
continue;
5556

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,7 @@ PreservedAnalyses AddressSanitizerPass::run(Module &M,
15111511
ClUseStackSafety ? &MAM.getResult<StackSafetyGlobalAnalysis>(M) : nullptr;
15121512

15131513
if (Triple(M.getTargetTriple()).isSPIROrSPIRV()) {
1514+
// Make sure "__AsanKernelMetadata" always exists
15141515
ExtendSpirKernelArgs(M, FAM);
15151516
Modified = true;
15161517

0 commit comments

Comments
 (0)