Skip to content

Commit 24ddd0c

Browse files
committed
fix build
1 parent 484717f commit 24ddd0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/lib/Driver/OffloadBundler.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,9 @@ class ObjectFileHandler final : public FileHandler {
690690
// If we are dealing with a bitcode file do not add special globals to
691691
// the list of defined symbols.
692692
if (SF->isIR() &&
693-
(Name == "llvm.used" || Name == "llvm.compiler.used" ||
694-
Name == "__AsanDeviceGlobalMetadata") ||
695-
Name == "__AsanKernelMetadata"))
693+
(Name == "llvm.used" || Name == "llvm.compiler.used" ||
694+
Name == "__AsanDeviceGlobalMetadata" ||
695+
Name == "__AsanKernelMetadata"))
696696
continue;
697697

698698
// Add symbol name with the target prefix to the buffer.

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,7 @@ static bool isUnsupportedDeviceGlobal(GlobalVariable *G) {
16421642
return true;
16431643

16441644
// Skip instrumenting on "__AsanKernelMetadata" etc.
1645-
if (G.getName().starts_with("__Asan"))
1645+
if (G->getName().starts_with("__Asan"))
16461646
return true;
16471647

16481648
Attribute Attr = G->getAttribute("sycl-device-image-scope");

0 commit comments

Comments
 (0)