File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,8 @@ constexpr uint32_t SPIRV_HOST_ACCESS_DECOR = 6147;
2828PreservedAnalyses 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 ();
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments