diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-10 03:13:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-10 03:13:20 +0000 |
commit | fac631052809b59c1b66f687c08a743de7fb50e9 (patch) | |
tree | 736ed92e2a2c52864a1e9dfe4c4edb6bad34c614 /lib/CodeGen/CGDeclCXX.cpp | |
parent | 93cd6e8e17a40ee6fe1f17ab74d841e1f4fe9351 (diff) |
Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDeclCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGDeclCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDeclCXX.cpp b/lib/CodeGen/CGDeclCXX.cpp index 492b95ad15..77d91a3a97 100644 --- a/lib/CodeGen/CGDeclCXX.cpp +++ b/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; } |