[cfe-commits] r129513 - /cfe/trunk/lib/Serialization/ASTReader.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Thu Apr 14 07:07:41 PDT 2011
Author: cornedbee
Date: Thu Apr 14 09:07:41 2011
New Revision: 129513
URL: http://llvm.org/viewvc/llvm-project?rev=129513&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Serialization/ASTReader.cpp
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=129513&r1=129512&r2=129513&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Thu Apr 14 09:07:41 2011
@@ -2463,8 +2463,8 @@
}
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.
More information about the cfe-commits
mailing list