瀏覽代碼

Use the MaybeParseMicrosoftAttributes function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170761 91177308-0d34-0410-b5e6-96231b3b80d8
Chad Rosier 12 年之前
父節點
當前提交
16f90bfe53
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lib/Parse/ParseDecl.cpp

+ 1 - 2
lib/Parse/ParseDecl.cpp

@@ -4952,8 +4952,7 @@ void Parser::ParseParameterDeclarationClause(
     MaybeParseCXX0XAttributes(DS.getAttributes());
     MaybeParseCXX0XAttributes(DS.getAttributes());
 
 
     // Skip any Microsoft attributes before a param.
     // Skip any Microsoft attributes before a param.
-    if (getLangOpts().MicrosoftExt && Tok.is(tok::l_square))
-      ParseMicrosoftAttributes(DS.getAttributes());
+    MaybeParseMicrosoftAttributes(DS.getAttributes());
 
 
     SourceLocation DSStart = Tok.getLocation();
     SourceLocation DSStart = Tok.getLocation();