summaryrefslogtreecommitdiff
path: root/unittests/Lex
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-03 03:46:04 +0000
committerAlp Toker <alp@nuanti.com>2014-05-03 03:46:04 +0000
commit1e0ab3f294f3514ccfa915056cd31f2e8a4b7dbc (patch)
tree3d805245402395129ecf9551feebf7b45b96ee48 /unittests/Lex
parenteba660f596a9acf8e0fa7f576ed8711ae71c7220 (diff)
downloadclang-1e0ab3f294f3514ccfa915056cd31f2e8a4b7dbc.tar.gz
clang-1e0ab3f294f3514ccfa915056cd31f2e8a4b7dbc.tar.bz2
clang-1e0ab3f294f3514ccfa915056cd31f2e8a4b7dbc.tar.xz
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
Diffstat (limited to 'unittests/Lex')
-rw-r--r--unittests/Lex/PPCallbacksTest.cpp6
1 files changed, 4 insertions, 2 deletions
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);