Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Clang] Remove unneeded template keyword #71435

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

shafik
Copy link
Collaborator

@shafik shafik commented Nov 6, 2023

As noted in this bug report: #37647

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

As noted in this bug report: llvm#37647

Due to this clang bug we added the template keyword in Redeclarable.h. The bug
has been fixed since then, so removing it.
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Nov 6, 2023
@llvmbot
Copy link
Member

llvmbot commented Nov 6, 2023

@llvm/pr-subscribers-clang

Author: Shafik Yaghmour (shafik)

Changes

As noted in this bug report: #37647

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


Full diff: https://github.com/llvm/llvm-project/pull/71435.diff

1 Files Affected:

  • (modified) clang/include/clang/AST/Redeclarable.h (+1-3)
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 {

Copy link
Contributor

@cor3ntin cor3ntin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (NFC change)

@shafik shafik merged commit 9c34678 into llvm:main Nov 7, 2023
5 checks passed
@shafik
Copy link
Collaborator Author

shafik commented Nov 7, 2023

Sadly this is failing on some build bots: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/62315/consoleFull#-3939952849ba4694-19c4-4d7e-bec5-911270d8a58c

Not sure why at the moment. Will revert for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants