diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-04-14 14:07:41 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-04-14 14:07:41 +0000 |
commit | 5655837683843a526da9d5af1eb0edbed8c0bc94 (patch) | |
tree | 0c9413986c68ac3b8bf6c5b6d971ad7d73b88d79 /lib | |
parent | 97e50714c262cc421f960303171d2c1afbc9bb4f (diff) |
The ASTReader created by -chain-include used the generated PCH buffers in the wrong order. The effect was that all but the first chain-include files was ignored for subsequent compilations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Serialization/ASTReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index 1b0f8c56a0..8e8a1bd2dc 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -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. |