[clang] [CIR] Make ClangIR compatible with latest nested name specifier AST representation (PR #152846)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 9 10:34:48 PDT 2025


================
@@ -10,20 +10,20 @@ bool clang::CIRGen::isEmptyRecordForLayout(const ASTContext &context,
   if (!rt)
     return false;
 
-  const RecordDecl *rd = rt->getDecl();
+  const RecordDecl *rd = rt->getOriginalDecl();
----------------
AmrDeveloper wrote:

Thank you for the review and the explaination, I upaded them in the PR

https://github.com/llvm/llvm-project/pull/152846


More information about the cfe-commits mailing list