aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGClass.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/CGClass.cpp
parentf319e9905fbddc2cf83a9c82734f4591a6ba8d89 (diff)
downloadllvm-73e465e148e1fef84197388ca90e995edcdbedc5.zip
llvm-73e465e148e1fef84197388ca90e995edcdbedc5.tar.gz
llvm-73e465e148e1fef84197388ca90e995edcdbedc5.tar.bz2
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/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 84c43b8..6d36901 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -953,7 +953,7 @@ void CodeGenFunction::EmitDestructorBody(FunctionArgList &Args) {
// -fapple-kext must inline any call to this dtor into
// the caller's body.
if (getContext().getLangOpts().AppleKext)
- CurFn->addFnAttr(llvm::Attribute::AlwaysInline);
+ CurFn->addFnAttr(llvm::Attributes::AlwaysInline);
break;
}