Skip to content

Commit

Permalink
PassWrapper: these two lines shouldn't have been ifdef'd
Browse files Browse the repository at this point in the history
  • Loading branch information
durin42 committed Sep 16, 2021
1 parent a97f89a commit bc4d8af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,8 @@ LLVMRustOptimizeWithNewPassManager(
MPM.addPass(ModuleMemorySanitizerPass(Options));
#else
MPM.addPass(MemorySanitizerPass(Options));
MPM.addPass(createModuleToFunctionPassAdaptor(MemorySanitizerPass(Options)));
#endif
MPM.addPass(createModuleToFunctionPassAdaptor(MemorySanitizerPass(Options)));
}
);
#else
Expand All @@ -905,8 +905,8 @@ LLVMRustOptimizeWithNewPassManager(
MPM.addPass(ModuleThreadSanitizerPass());
#else
MPM.addPass(ThreadSanitizerPass());
MPM.addPass(createModuleToFunctionPassAdaptor(ThreadSanitizerPass()));
#endif
MPM.addPass(createModuleToFunctionPassAdaptor(ThreadSanitizerPass()));
}
);
#else
Expand Down

0 comments on commit bc4d8af

Please sign in to comment.