summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInstance.cpp
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 /lib/Frontend/CompilerInstance.cpp
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 'lib/Frontend/CompilerInstance.cpp')
-rw-r--r--lib/Frontend/CompilerInstance.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp
index e9672c4426..76301f2a44 100644
--- a/lib/Frontend/CompilerInstance.cpp
+++ b/lib/Frontend/CompilerInstance.cpp
@@ -300,9 +300,9 @@ void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) {
void CompilerInstance::createASTContext() {
Preprocessor &PP = getPreprocessor();
Context = new ASTContext(getLangOpts(), PP.getSourceManager(),
- &getTarget(), PP.getIdentifierTable(),
- PP.getSelectorTable(), PP.getBuiltinInfo(),
- /*size_reserve=*/ 0);
+ PP.getIdentifierTable(), PP.getSelectorTable(),
+ PP.getBuiltinInfo());
+ Context->InitBuiltinTypes(getTarget());
}
// ExternalASTSource