We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2807fd commit 484717fCopy full SHA for 484717f
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -1641,6 +1641,10 @@ static bool isUnsupportedDeviceGlobal(GlobalVariable *G) {
1641
if (!G->hasAttribute("sycl-device-image-scope"))
1642
return true;
1643
1644
+ // Skip instrumenting on "__AsanKernelMetadata" etc.
1645
+ if (G.getName().starts_with("__Asan"))
1646
+ return true;
1647
+
1648
Attribute Attr = G->getAttribute("sycl-device-image-scope");
1649
return (!Attr.isStringAttribute() || Attr.getValueAsString() == "false");
1650
}
0 commit comments