[cfe-commits] r148183 - /cfe/trunk/lib/Serialization/ASTWriterDecl.cpp
Douglas Gregor
dgregor at apple.com
Sat Jan 14 07:31:52 PST 2012
Author: dgregor
Date: Sat Jan 14 09:31:52 2012
New Revision: 148183
URL: http://llvm.org/viewvc/llvm-project?rev=148183&view=rev
Log:
Revert accidental commit
Modified:
cfe/trunk/lib/Serialization/ASTWriterDecl.cpp
Modified: cfe/trunk/lib/Serialization/ASTWriterDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriterDecl.cpp?rev=148183&r1=148182&r2=148183&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriterDecl.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriterDecl.cpp Sat Jan 14 09:31:52 2012
@@ -1237,11 +1237,9 @@
template <typename T>
void ASTDeclWriter::VisitRedeclarable(Redeclarable<T> *D) {
- T *First = D->getFirstDeclaration();
- Writer.AddDeclRef(First);
-
enum { FirstDeclaration = 0, FirstInFile, PointsToPrevious };
T *Prev = D->getPreviousDeclaration();
+ T *First = D->getFirstDeclaration();
if (!Prev) {
Record.push_back(FirstDeclaration);
More information about the cfe-commits
mailing list