Skip to content

Commit bc4d8af

Browse files
committed
PassWrapper: these two lines shouldn't have been ifdef'd
1 parent a97f89a commit bc4d8af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ LLVMRustOptimizeWithNewPassManager(
879879
MPM.addPass(ModuleMemorySanitizerPass(Options));
880880
#else
881881
MPM.addPass(MemorySanitizerPass(Options));
882-
MPM.addPass(createModuleToFunctionPassAdaptor(MemorySanitizerPass(Options)));
883882
#endif
883+
MPM.addPass(createModuleToFunctionPassAdaptor(MemorySanitizerPass(Options)));
884884
}
885885
);
886886
#else
@@ -905,8 +905,8 @@ LLVMRustOptimizeWithNewPassManager(
905905
MPM.addPass(ModuleThreadSanitizerPass());
906906
#else
907907
MPM.addPass(ThreadSanitizerPass());
908-
MPM.addPass(createModuleToFunctionPassAdaptor(ThreadSanitizerPass()));
909908
#endif
909+
MPM.addPass(createModuleToFunctionPassAdaptor(ThreadSanitizerPass()));
910910
}
911911
);
912912
#else

0 commit comments

Comments
 (0)