================
@@ -331,21 +362,37 @@ void ASTContext::addComment(const RawComment &RC) {
Comments.addComment(RC, LangOpts.CommentOpts, BumpAlloc);
}
-const RawComment *ASTContext::getRawCommentForAnyRedecl(
- const Decl *D,
- const Decl **OriginalDecl)
const {
- if (!D) {
+const RawComment *
+ASTContext::getRawCommentForAnyRedecl(RawCommentLookupKey Key,
+ const Decl **OriginalDecl) const {
+ if (Key.isNull()) {
if (OriginalDecl)
- OriginalDecl = nullptr;
+ *OriginalDecl = nullptr;
----------------
DougGregor wrote:
It was a drive-by fix, I didn't see any tests that failed.
https://github.com/llvm/llvm-project/pull/198452
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits