]> granicus.if.org Git - clang/commitdiff
Turning the __w64 attribute into an ignored attribute to match other Microsoft extens...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 6 Dec 2013 18:56:03 +0000 (18:56 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 6 Dec 2013 18:56:03 +0000 (18:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196592 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Attr.td
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaType.cpp

index 41e70f4302b205e3e1bb345cfc000a901e85695f..ac6bbf63ef3ca68aa0571208085bc32a792aabfc 100644 (file)
@@ -1205,7 +1205,7 @@ def SelectAny : InheritableAttr {
   let LangOpts = [MicrosoftExt];
 }
 
-def Win64 : InheritableAttr {
+def Win64 : IgnoredAttr {
   let Spellings = [Keyword<"__w64">];
   let LangOpts = [MicrosoftExt];
 }
index 5414453efc143f4ce96848e8a8bb1b2ba851271a..f5a36542185ba252fd31e9e6b7f9761a372c0a45 100644 (file)
@@ -4125,8 +4125,6 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D,
     handleSimpleAttribute<MultipleInheritanceAttr>(S, D, Attr); break;
   case AttributeList::AT_VirtualInheritance:
     handleSimpleAttribute<VirtualInheritanceAttr>(S, D, Attr); break;
-  case AttributeList::AT_Win64:
-    handleSimpleAttribute<Win64Attr>(S, D, Attr); break;
   case AttributeList::AT_ForceInline:
     handleSimpleAttribute<ForceInlineAttr>(S, D, Attr); break;
   case AttributeList::AT_SelectAny:
index 6dfc235a142ad2521998db9b138e82257100200b..514a0fa30d104c7229fb66d56feab598ddd11336 100644 (file)
@@ -4951,9 +4951,6 @@ static void processTypeAttrs(TypeProcessingState &state, QualType &type,
       attr.setUsedAsTypeAttr();
       break;
 
-    case AttributeList::AT_Win64:
-      attr.setUsedAsTypeAttr();
-      break;
     MS_TYPE_ATTRS_CASELIST:
       if (!handleMSPointerTypeQualifierAttr(state, attr, type))
         attr.setUsedAsTypeAttr();