From f24d7bbbcde2dbdc0eff41034c83f95fd948520b Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 28 May 2010 18:45:08 +0000 Subject: A more minimal fix for PR6762. llvm-svn: 104991 --- clang/lib/Sema/Sema.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Sema/Sema.cpp') diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 523b1963922..9cc50485729 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -43,6 +43,8 @@ void Sema::ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) { TUScope = S; PushDeclContext(S, Context.getTranslationUnitDecl()); + VAListTagName = PP.getIdentifierInfo("__va_list_tag"); + if (PP.getTargetInfo().getPointerWidth(0) >= 64) { TypeSourceInfo *TInfo; -- cgit v1.2.3