Add parser support for __builtin_stdarg_start, PR2531

llvm-svn: 53328
This commit is contained in:
Chris Lattner 2008-07-09 17:26:36 +00:00
parent dad7a35acf
commit b218272778
2 changed files with 3 additions and 1 deletions

View File

@ -99,6 +99,7 @@ BUILTIN(__builtin___CFStringMakeConstantString, "FC*cC*", "nc")
BUILTIN(__builtin_va_start, "va&.", "n")
BUILTIN(__builtin_va_end, "va&", "n")
BUILTIN(__builtin_va_copy, "va&a", "n")
BUILTIN(__builtin_stdarg_start, "va&a", "n")
BUILTIN(__builtin_memcpy, "v*v*vC*z", "n")
BUILTIN(__builtin_return_address, "v*Ui", "n")
BUILTIN(__builtin_frame_address, "v*Ui", "n")

View File

@ -205,7 +205,8 @@ ScopedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid,
if (BID == Builtin::BI__builtin_va_start ||
BID == Builtin::BI__builtin_va_copy ||
BID == Builtin::BI__builtin_va_end)
BID == Builtin::BI__builtin_va_end ||
BID == Builtin::BI__builtin_stdarg_start)
InitBuiltinVaListType();
QualType R = Context.BuiltinInfo.GetBuiltinType(BID, Context);