]> granicus.if.org Git - clang/commitdiff
Fix bug in the new PCHReader constructor. PP and Context should be initialized to 0.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 19 Jun 2009 07:55:35 +0000 (07:55 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 19 Jun 2009 07:55:35 +0000 (07:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73762 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PCHReader.cpp

index 3c6e9bbe8afd66d8235d4d47934d52bd97f775bb..96f21f112867442bcd837d0879f29f4d656a83a8 100644 (file)
@@ -350,7 +350,7 @@ PCHReader::PCHReader(Preprocessor &PP, ASTContext *Context)
 PCHReader::PCHReader(SourceManager &SourceMgr, FileManager &FileMgr,
                      Diagnostic &Diags) 
   : SourceMgr(SourceMgr), FileMgr(FileMgr), Diags(Diags),
-    SemaObj(0), PP(PP), Context(Context), Consumer(0),
+    SemaObj(0), PP(0), Context(0), Consumer(0),
     IdentifierTableData(0), IdentifierLookupTable(0),
     IdentifierOffsets(0),
     MethodPoolLookupTable(0), MethodPoolLookupTableData(0),