================ @@ -309,35 +309,35 @@ bool TemplateDecl::isTypeAlias() const { void RedeclarableTemplateDecl::anchor() {} RedeclarableTemplateDecl::CommonBase *RedeclarableTemplateDecl::getCommonPtr() const { - if (Common) - return Common; + if (CommonBase *C = Common.getPointer()) ---------------- erichkeane wrote:
Looks like we should have a function on `RedeclarableTemplateDecl` to do this... its a shame that `getCommonPtr` is taken, but perhaps a private helper here would be nice. Something like `getCommonPtrInternal` or something? With a comment that makes it clear what it is doing. https://github.com/llvm/llvm-project/pull/106585 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits