-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Conversation
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.
@llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) ChangesAs 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:
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 {
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (NFC change)
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. |
Reverts #71435 This is failing on some build bots e.g.: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/62315/consoleFull#-3939952849ba4694-19c4-4d7e-bec5-911270d8a58c
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.