diff options
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index f427f4ec..5882f73 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -295,8 +295,9 @@ CompilerInstance::createPCHExternalASTSource(llvm::StringRef Path,    Reader->setDeserializationListener(              static_cast<ASTDeserializationListener *>(DeserializationListener)); -  switch (Reader->ReadAST(Path, -                          Preamble ? ASTReader::Preamble : ASTReader::PCH)) { +  switch (Reader->ReadAST(Path,  +                          Preamble ? serialization::MK_Preamble  +                                   : serialization::MK_PCH)) {    case ASTReader::Success:      // Set the predefines buffer as suggested by the PCH reader. Typically, the      // predefines buffer will be empty.  | 
