summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDeclCXX.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-10 03:13:20 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-10 03:13:20 +0000
commit73e465e148e1fef84197388ca90e995edcdbedc5 (patch)
tree9afa985a9939b04584d3ebf2ad5dd19e70da9ca1 /clang/lib/CodeGen/CGDeclCXX.cpp
parentf319e9905fbddc2cf83a9c82734f4591a6ba8d89 (diff)
downloadbcm5719-llvm-73e465e148e1fef84197388ca90e995edcdbedc5.tar.gz
bcm5719-llvm-73e465e148e1fef84197388ca90e995edcdbedc5.zip
Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.
llvm-svn: 165596
Diffstat (limited to 'clang/lib/CodeGen/CGDeclCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGDeclCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDeclCXX.cpp b/clang/lib/CodeGen/CGDeclCXX.cpp
index 492b95ad155..77d91a3a97d 100644
--- a/clang/lib/CodeGen/CGDeclCXX.cpp
+++ b/clang/lib/CodeGen/CGDeclCXX.cpp
@@ -229,7 +229,7 @@ CreateGlobalInitOrDestructFunction(CodeGenModule &CGM,
Fn->setDoesNotThrow();
if (CGM.getLangOpts().AddressSanitizer)
- Fn->addFnAttr(llvm::Attribute::AddressSafety);
+ Fn->addFnAttr(llvm::Attributes::AddressSafety);
return Fn;
}
OpenPOWER on IntegriCloud