summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-14 15:31:52 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-14 15:31:52 +0000
commit9abeca16e5b0a02647f0dbe175f144ee24f2da6c (patch)
tree9417876ad817976ea73aecf7678117ceac6e8668 /clang
parent463c8e7070b1146cc4f9fa66774efc1fe3b39775 (diff)
downloadbcm5719-llvm-9abeca16e5b0a02647f0dbe175f144ee24f2da6c.tar.gz
bcm5719-llvm-9abeca16e5b0a02647f0dbe175f144ee24f2da6c.zip
Revert accidental commit
llvm-svn: 148183
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Serialization/ASTWriterDecl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp
index bf2200d7aa2..32432c0a4fc 100644
--- a/clang/lib/Serialization/ASTWriterDecl.cpp
+++ b/clang/lib/Serialization/ASTWriterDecl.cpp
@@ -1237,11 +1237,9 @@ void ASTDeclWriter::VisitDeclContext(DeclContext *DC, uint64_t LexicalOffset,
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);
OpenPOWER on IntegriCloud