From f8396b6b58b423e7078dcda9092a065f9a4ba53a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 9 Jul 2008 17:26:36 +0000 Subject: [PATCH] Add parser support for __builtin_stdarg_start, PR2531 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53328 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Builtins.def | 1 + lib/Sema/SemaDecl.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/clang/AST/Builtins.def b/include/clang/AST/Builtins.def index de755f5d5f..7bdcd6dd8d 100644 --- a/include/clang/AST/Builtins.def +++ b/include/clang/AST/Builtins.def @@ -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") diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 8b98cbad11..183d9a9a24 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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); -- 2.40.0