[clang] 9c34678 - [Clang] Remove unneeded template keyword (#71435)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 6 17:52:49 PST 2023


Author: Shafik Yaghmour
Date: 2023-11-06T17:52:45-08:00
New Revision: 9c346780dc1deed1c5362fcfca874e281c53e6e0

URL: https://github.com/llvm/llvm-project/commit/9c346780dc1deed1c5362fcfca874e281c53e6e0
DIFF: https://github.com/llvm/llvm-project/commit/9c346780dc1deed1c5362fcfca874e281c53e6e0.diff

LOG: [Clang] Remove unneeded template keyword (#71435)

As noted in this bug report:
https://github.com/llvm/llvm-project/issues/37647

Due to this clang bug we added the template keyword in Redeclarable.h.
The bug has been fixed since then, so removing it.

Added: 
    

Modified: 
    clang/include/clang/AST/Redeclarable.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/Redeclarable.h b/clang/include/clang/AST/Redeclarable.h
index 091bb886f2d4962..be022bf5322ad61 100644
--- a/clang/include/clang/AST/Redeclarable.h
+++ b/clang/include/clang/AST/Redeclarable.h
@@ -114,9 +114,7 @@ class Redeclarable {
 
     bool isFirst() const {
       return Link.is<KnownLatest>() ||
-             // FIXME: 'template' is required on the next line due to an
-             // apparent clang bug.
-             Link.get<NotKnownLatest>().template is<UninitializedLatest>();
+             Link.get<NotKnownLatest>().is<UninitializedLatest>();
     }
 
     decl_type *getPrevious(const decl_type *D) const {


        


More information about the cfe-commits mailing list