forked from OSchip/llvm-project
Another tweak to handle the MS extensions (<rdar://problem/5956221>).
llvm-svn: 61821
This commit is contained in:
parent
016056cfde
commit
f192fabbdc
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -21,3 +21,8 @@ __forceinline InterlockedBitTestAndSet (long *Base, long Bit)
|
|||
};
|
||||
}
|
||||
|
||||
void *_alloca(int);
|
||||
|
||||
void foo() {
|
||||
__declspec(align(16)) int *buffer = (int *)_alloca(9);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue