]> granicus.if.org Git - clang/commitdiff
Rename function calls missed in r336605
authorRichard Trieu <rtrieu@google.com>
Mon, 9 Jul 2018 22:09:33 +0000 (22:09 +0000)
committerRichard Trieu <rtrieu@google.com>
Mon, 9 Jul 2018 22:09:33 +0000 (22:09 +0000)
NextIsLatest -> isFirst

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336610 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h

index c10ca9e9670b7d327137c8d2d8416df9c3ac3659..ed0725d036028e0c2017c5196a0ae3c995a271d8 100644 (file)
@@ -4260,7 +4260,7 @@ template<typename decl_type>
 void Redeclarable<decl_type>::setPreviousDecl(decl_type *PrevDecl) {
   // Note: This routine is implemented here because we need both NamedDecl
   // and Redeclarable to be defined.
-  assert(RedeclLink.NextIsLatest() &&
+  assert(RedeclLink.isFirst() &&
          "setPreviousDecl on a decl already in a redeclaration chain");
 
   if (PrevDecl) {
@@ -4268,7 +4268,7 @@ void Redeclarable<decl_type>::setPreviousDecl(decl_type *PrevDecl) {
     // redeclaration, or we can build invalid chains. If the most recent
     // redeclaration is invalid, it won't be PrevDecl, but we want it anyway.
     First = PrevDecl->getFirstDecl();
-    assert(First->RedeclLink.NextIsLatest() && "Expected first");
+    assert(First->RedeclLink.isFirst() && "Expected first");
     decl_type *MostRecent = First->getNextRedeclaration();
     RedeclLink = PreviousDeclLink(cast<decl_type>(MostRecent));