From: Kostya Serebryany Date: Fri, 23 Mar 2012 23:25:23 +0000 (+0000) Subject: use EP_OptimizerLast instead of EP_ScalarOptimizerLate for ThreadSanitizer X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e78ec3e8f7324e36ac9cf2268d5fe32997762940;p=clang use EP_OptimizerLast instead of EP_ScalarOptimizerLate for ThreadSanitizer git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153356 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index 79cdb3c240..a65ae82c1d 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -168,7 +168,7 @@ void EmitAssemblyHelper::CreatePasses() { } if (LangOpts.ThreadSanitizer) { - PMBuilder.addExtension(PassManagerBuilder::EP_ScalarOptimizerLate, + PMBuilder.addExtension(PassManagerBuilder::EP_OptimizerLast, addThreadSanitizerPass); PMBuilder.addExtension(PassManagerBuilder::EP_EnabledOnOptLevel0, addThreadSanitizerPass);