diff options
author | Kostya Serebryany <kcc@google.com> | 2011-11-22 01:28:36 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2011-11-22 01:28:36 +0000 |
commit | b61968857fd2c6579b4dcd7bad65736e89d21185 (patch) | |
tree | 609da6b63be356d95f559bdc2df4eb984e6ae7d2 /lib/CodeGen/BackendUtil.cpp | |
parent | 3fa45bb44ab933e4959204a9b388c5a2500a4382 (diff) |
implement __has_feature(address_sanitizer); also use LangOpts.AddressSanitizer instead of CodeGenOpts.AddressSanitizer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | lib/CodeGen/BackendUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index 0410cec736..048011d1f4 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -147,7 +147,7 @@ void EmitAssemblyHelper::CreatePasses() { addObjCARCOptPass); } - if (CodeGenOpts.AddressSanitizer) { + if (LangOpts.AddressSanitizer) { PMBuilder.addExtension(PassManagerBuilder::EP_ScalarOptimizerLate, addAddressSanitizerPass); } |