Skip to content

Commit 4e60de2

Browse files
committed
fix post link
1 parent cb7de24 commit 4e60de2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

llvm/lib/SYCLLowerIR/SanitizerKernelMetadata.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ constexpr uint32_t SPIRV_HOST_ACCESS_DECOR = 6147;
2828
PreservedAnalyses SanitizerKernelMetadataPass::run(Module &M,
2929
ModuleAnalysisManager &MAM) {
3030
auto *KernelMetadata = M.getNamedGlobal("__MsanKernelMetadata");
31-
if (!KernelMetadata) {
31+
if (!KernelMetadata)
3232
return PreservedAnalyses::all();
33-
}
3433

3534
auto &DL = M.getDataLayout();
3635
auto &Ctx = M.getContext();

llvm/tools/sycl-post-link/sycl-post-link.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,9 @@ processInputModule(std::unique_ptr<Module> M) {
791791
if (M->getTargetTriple().find("spir") != std::string::npos)
792792
Modified |= removeDeviceGlobalFromCompilerUsed(*M.get());
793793

794-
// AddressSanitizer specific passes
794+
// MemorySanitizer specific passes
795795
if (isModuleUsingMsan(*M)) {
796-
// Fix attributes and metadata of the global variable
797-
// "__AsanKernelMetadata"
796+
// Fix attributes and metadata of KernelMetadata
798797
Modified |= runModulePass<SanitizerKernelMetadataPass>(*M);
799798
}
800799

0 commit comments

Comments
 (0)