Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.
llvm-svn: 165596
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user