[clang] [PATCH 1/6] [clang] Improve nested name specifier AST representation (PR #147835)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 20 17:09:13 PDT 2025
================
@@ -326,7 +326,7 @@ Record *Program::getOrCreateRecord(const RecordDecl *RD) {
const auto *RT = Spec.getType()->getAs<RecordType>();
if (!RT)
return nullptr;
- const RecordDecl *BD = RT->getDecl();
+ const RecordDecl *BD = RT->getOriginalDecl()->getDefinitionOrSelf();
----------------
mizvekov wrote:
I have split up all the trivial changes related to 'getOriginalDecl' into its own patch: https://github.com/llvm/llvm-project/pull/149747
https://github.com/llvm/llvm-project/pull/147835
More information about the cfe-commits
mailing list