From 1e0ab3f294f3514ccfa915056cd31f2e8a4b7dbc Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 3 May 2014 03:46:04 +0000 Subject: Eliminate ASTContext's DelayInitialization flag Having various possible states of initialization following construction doesn't add value here. Also remove the unused size_reserve parameter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207897 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Lex/PPCallbacksTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'unittests/Lex') diff --git a/unittests/Lex/PPCallbacksTest.cpp b/unittests/Lex/PPCallbacksTest.cpp index 043c3003ce..d3138c0500 100644 --- a/unittests/Lex/PPCallbacksTest.cpp +++ b/unittests/Lex/PPCallbacksTest.cpp @@ -213,9 +213,11 @@ protected: // parser actually sets correct pragma handlers for preprocessor // according to LangOptions, so we init Parser to register opencl // pragma handlers - ASTContext Context(OpenCLLangOpts, SourceMgr, Target.getPtr(), + ASTContext Context(OpenCLLangOpts, SourceMgr, PP.getIdentifierTable(), PP.getSelectorTable(), - PP.getBuiltinInfo(), 0); + PP.getBuiltinInfo()); + Context.InitBuiltinTypes(*Target); + ASTConsumer Consumer; Sema S(PP, Context, Consumer); Parser P(PP, S, false); -- cgit v1.2.3