summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2011-11-22 01:28:36 +0000
committerKostya Serebryany <kcc@google.com>2011-11-22 01:28:36 +0000
commitc3333e879f19f9758f3cbe6bc07c195b3576d68a (patch)
tree443a76ce923e9b9ad99f67c26278bebb7176cc00 /clang/lib/CodeGen/BackendUtil.cpp
parentf5639777954bc1d216df2a1b784d29fa52cd4201 (diff)
downloadbcm5719-llvm-c3333e879f19f9758f3cbe6bc07c195b3576d68a.tar.gz
bcm5719-llvm-c3333e879f19f9758f3cbe6bc07c195b3576d68a.zip
implement __has_feature(address_sanitizer); also use LangOpts.AddressSanitizer instead of CodeGenOpts.AddressSanitizer
llvm-svn: 145054
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 0410cec7369..048011d1f4b 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -147,7 +147,7 @@ void EmitAssemblyHelper::CreatePasses() {
addObjCARCOptPass);
}
- if (CodeGenOpts.AddressSanitizer) {
+ if (LangOpts.AddressSanitizer) {
PMBuilder.addExtension(PassManagerBuilder::EP_ScalarOptimizerLate,
addAddressSanitizerPass);
}
OpenPOWER on IntegriCloud