Skip to content

Commit 484717f

Browse files
committed
fix merge
1 parent c2807fd commit 484717f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,10 @@ static bool isUnsupportedDeviceGlobal(GlobalVariable *G) {
16411641
if (!G->hasAttribute("sycl-device-image-scope"))
16421642
return true;
16431643

1644+
// Skip instrumenting on "__AsanKernelMetadata" etc.
1645+
if (G.getName().starts_with("__Asan"))
1646+
return true;
1647+
16441648
Attribute Attr = G->getAttribute("sycl-device-image-scope");
16451649
return (!Attr.isStringAttribute() || Attr.getValueAsString() == "false");
16461650
}

0 commit comments

Comments
 (0)