Attr.getAttributeSpellingListIndex()));
}
-static void handlePortabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) {
+static void handleWin64Attr(Sema &S, Decl *D, const AttributeList &Attr) {
if (!checkMicrosoftExt(S, Attr))
return;
- AttributeList::Kind Kind = Attr.getKind();
- if (Kind == AttributeList::AT_Win64)
- D->addAttr(
- ::new (S.Context) Win64Attr(Attr.getRange(), S.Context,
- Attr.getAttributeSpellingListIndex()));
+ D->addAttr(::new (S.Context) Win64Attr(Attr.getRange(), S.Context,
+ Attr.getAttributeSpellingListIndex()));
}
static void handleForceInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) {
handleInheritanceAttr(S, D, Attr);
break;
case AttributeList::AT_Win64:
- handlePortabilityAttr(S, D, Attr);
- break;
+ handleWin64Attr(S, D, Attr); break;
case AttributeList::AT_ForceInline:
handleForceInlineAttr(S, D, Attr);
break;