summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-12-21 21:22:20 +0000
committerChad Rosier <mcrosier@apple.com>2012-12-21 21:22:20 +0000
commiteea9ca7e398d8f3e4f06f607f243e35ee21022b4 (patch)
tree8df1eae36ccda124cb2e15887ad9653f4ede298e /clang/lib
parent09ef8425e999852de8dd0ecedd9a18cfb5e53cf6 (diff)
downloadbcm5719-llvm-eea9ca7e398d8f3e4f06f607f243e35ee21022b4.tar.gz
bcm5719-llvm-eea9ca7e398d8f3e4f06f607f243e35ee21022b4.zip
Remove unnecessary checks.
llvm-svn: 170924
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 23a6037bbb1..1b0c5e9d04a 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -4566,13 +4566,10 @@ void Parser::ParseParenDeclarator(Declarator &D) {
// present even if the attribute list was empty.
RequiresArg = true;
}
+
// Eat any Microsoft extensions.
- if (Tok.is(tok::kw___cdecl) || Tok.is(tok::kw___stdcall) ||
- Tok.is(tok::kw___thiscall) || Tok.is(tok::kw___fastcall) ||
- Tok.is(tok::kw___w64) || Tok.is(tok::kw___ptr64) ||
- Tok.is(tok::kw___ptr32) || Tok.is(tok::kw___unaligned)) {
- ParseMicrosoftTypeAttributes(attrs);
- }
+ ParseMicrosoftTypeAttributes(attrs);
+
// Eat any Borland extensions.
if (Tok.is(tok::kw___pascal))
ParseBorlandTypeAttributes(attrs);
OpenPOWER on IntegriCloud