Skip to content

Commit 6e06fed

Browse files
committed
wip
1 parent cd1fe71 commit 6e06fed

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

clang/lib/Driver/OffloadBundler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ class ObjectFileHandler final : public FileHandler {
691691
// llvm.used and llvm.compiler.used to the list of defined symbols.
692692
if (SF->isIR() &&
693693
(Name == "llvm.used" || Name == "llvm.compiler.used" ||
694-
Name == "__AsanSpirKernelMetadata"))
694+
Name == "__AsanKernelMetadata"))
695695
continue;
696696

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

clang/lib/Driver/SanitizerArgs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,9 @@ void SanitizerArgs::addArgs(const ToolChain &TC, const llvm::opt::ArgList &Args,
11971197

11981198
CmdArgs.push_back("-mllvm");
11991199
CmdArgs.push_back("-asan-mapping-scale=4");
1200+
1201+
addSpecialCaseListOpt(Args, CmdArgs,
1202+
"-fsanitize-ignorelist=", UserIgnorelistFiles);
12001203
}
12011204
return;
12021205
}

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,9 @@ void AddressSanitizer::instrumentInitAsanLaunchInfo(Function &F) {
18201820
return;
18211821
}
18221822
}
1823-
IRB.CreateStore(ConstantInt::get(IntptrTy, 0), AsanLaunchInfo);
1823+
IRB.CreateStore(
1824+
ConstantPointerNull::get(IntptrTy->getPointerTo(kSpirOffloadGlobalAS)),
1825+
AsanLaunchInfo);
18241826
}
18251827

18261828
// Instrument memset/memmove/memcpy

0 commit comments

Comments
 (0)