File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -738,6 +738,9 @@ static void addSanitizers(const Triple &TargetTriple,
738738 if (LangOpts.Sanitize .has (SanitizerKind::NumericalStability))
739739 MPM.addPass (NumericalStabilitySanitizerPass ());
740740
741+ if (LangOpts.Sanitize .has (SanitizerKind::Realtime))
742+ MPM.addPass (RealtimeSanitizerPass ());
743+
741744 auto ASanPass = [&](SanitizerMask Mask, bool CompileKernel) {
742745 if (LangOpts.Sanitize .has (Mask)) {
743746 bool UseGlobalGC = asanUseGlobalsGC (TargetTriple, CodeGenOpts);
@@ -1023,9 +1026,6 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
10231026 FPM.addPass (BoundsCheckingPass ());
10241027 });
10251028
1026- if (LangOpts.Sanitize .has (SanitizerKind::Realtime))
1027- MPM.addPass (RealtimeSanitizerPass ());
1028-
10291029 // Don't add sanitizers if we are here from ThinLTO PostLink. That already
10301030 // done on PreLink stage.
10311031 if (!IsThinLTOPostLink) {
You can’t perform that action at this time.
0 commit comments