From de3be0d8caa7438422a0f08230d0855a73f046d9 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 25 Feb 2014 09:53:29 +0000 Subject: Attr: Remove ForceInline The __forceinline keyword's semantics are now recast as AlwaysInline and the kw___forceinline token has its language mode set for KEYMS. This preserves the semantics of the previous implementation but with less duplication of code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202131 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/CodeGen/CodeGenFunction.cpp') diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 409d1141b8..e81b1bccb1 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -527,8 +527,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, Fn->addFnAttr(llvm::Attribute::InlineHint); break; } - } else if (!FD->hasAttr() && - !FD->hasAttr()) + } else if (!FD->hasAttr()) Fn->addFnAttr(llvm::Attribute::NoInline); } -- cgit v1.2.3