Another tweak to handle the MS extensions (<rdar://problem/5956221>).

llvm-svn: 61821
This commit is contained in:
Steve Naroff 2009-01-06 19:34:12 +00:00
parent 016056cfde
commit f192fabbdc
3 changed files with 7 additions and 0 deletions

View File

@ -1353,6 +1353,7 @@ bool Parser::isDeclarationSpecifier() {
case tok::less:
return getLang().ObjC1;
case tok::kw___declspec:
case tok::kw___cdecl:
case tok::kw___stdcall:
case tok::kw___fastcall:

View File

@ -626,6 +626,7 @@ Parser::TPResult Parser::isCXXDeclarationSpecifier() {
return TPResult::True();
// Microsoft
case tok::kw___declspec:
case tok::kw___cdecl:
case tok::kw___stdcall:
case tok::kw___fastcall:

View File

@ -21,3 +21,8 @@ __forceinline InterlockedBitTestAndSet (long *Base, long Bit)
};
}
void *_alloca(int);
void foo() {
__declspec(align(16)) int *buffer = (int *)_alloca(9);
}