[clang] [clang] fix some places where used decls were not marked as referenced (PR #191848)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 13 09:49:55 PDT 2026
================
@@ -681,8 +681,7 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
}
}
- if (auto *TD = dyn_cast_or_null<TypedefNameDecl>(SD))
- MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false);
+ MarkAnyDeclReferenced(SD->getLocation(), SD, /*OdrUse=*/false);
----------------
erichkeane wrote:
Any idea why we only did this for typedef before?
https://github.com/llvm/llvm-project/pull/191848
More information about the cfe-commits
mailing list