]> granicus.if.org Git - clang/commitdiff
__forceinline is a keyword, and not a GNU-style attribute. This FIXME appears to...
authorAaron Ballman <aaron@aaronballman.com>
Mon, 13 Jan 2014 21:40:16 +0000 (21:40 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 13 Jan 2014 21:40:16 +0000 (21:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199143 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDecl.cpp

index 9835e249b1f062387962692ff669581ab9caae14..7af1d93a6ff0dc38c8ac07eb3c193efd53cf1ecb 100644 (file)
@@ -2907,10 +2907,8 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS,
       isInvalid = DS.setFunctionSpecForceInline(Loc, PrevSpec, DiagID);
       IdentifierInfo *AttrName = Tok.getIdentifierInfo();
       SourceLocation AttrNameLoc = Tok.getLocation();
-      // FIXME: This does not work correctly if it is set to be a declspec
-      //        attribute, and a GNU attribute is simply incorrect.
       DS.getAttributes().addNew(AttrName, AttrNameLoc, 0, AttrNameLoc, 0, 0,
-                                AttributeList::AS_GNU);
+                                AttributeList::AS_Keyword);
       break;
     }