]> granicus.if.org Git - clang/commitdiff
The ASTReader created by -chain-include used the generated PCH buffers in the wrong...
authorSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 14 Apr 2011 14:07:41 +0000 (14:07 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 14 Apr 2011 14:07:41 +0000 (14:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129513 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReader.cpp

index 1b0f8c56a0b149d12da277154e2ed24e8ecbe4c5..8e8a1bd2dc06f255d4322097ca0ffef15508dc19 100644 (file)
@@ -2463,8 +2463,8 @@ ASTReader::ASTReadResult ASTReader::ReadASTCore(llvm::StringRef FileName,
   }
 
   if (!ASTBuffers.empty()) {
-    F.Buffer.reset(ASTBuffers.front());
-    ASTBuffers.pop_front();
+    F.Buffer.reset(ASTBuffers.back());
+    ASTBuffers.pop_back();
     assert(F.Buffer && "Passed null buffer");
   } else {
     // Open the AST file.