[cfe-commits] r145531 - /cfe/trunk/lib/CodeGen/BackendUtil.cpp
Kostya Serebryany
kcc at google.com
Wed Nov 30 14:20:21 PST 2011
Author: kcc
Date: Wed Nov 30 16:20:21 2011
New Revision: 145531
URL: http://llvm.org/viewvc/llvm-project?rev=145531&view=rev
Log:
make asan work at -O0, clang part. Patch by glider at google.com
Modified:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=145531&r1=145530&r2=145531&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Wed Nov 30 16:20:21 2011
@@ -150,6 +150,8 @@
if (LangOpts.AddressSanitizer) {
PMBuilder.addExtension(PassManagerBuilder::EP_ScalarOptimizerLate,
addAddressSanitizerPass);
+ PMBuilder.addExtension(PassManagerBuilder::EP_EnabledOnOptLevel0,
+ addAddressSanitizerPass);
}
// Figure out TargetLibraryInfo.
More information about the cfe-commits
mailing list