r231477 - Removing code that is unused after r231424; NFC.

Aaron Ballman aaron at aaronballman.com
Fri Mar 6 06:24:53 PST 2015


Author: aaronballman
Date: Fri Mar  6 08:24:53 2015
New Revision: 231477

URL: http://llvm.org/viewvc/llvm-project?rev=231477&view=rev
Log:
Removing code that is unused after r231424; NFC.

Modified:
    cfe/trunk/lib/Serialization/ASTWriter.cpp

Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=231477&r1=231476&r2=231477&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Fri Mar  6 08:24:53 2015
@@ -3901,14 +3901,6 @@ void ASTWriter::WriteRedeclarations() {
       }
     }
 
-    if (!First->isFromASTFile() && Chain) {
-      Decl *FirstFromAST = MostRecent;
-      for (Decl *Prev = MostRecent; Prev; Prev = Prev->getPreviousDecl()) {
-        if (Prev->isFromASTFile())
-          FirstFromAST = Prev;
-      }
-    }
-
     LocalRedeclChains[Offset] = Size;
     
     // Reverse the set of local redeclarations, so that we store them in





More information about the cfe-commits mailing list