[clang] [Clang] [Sema] Do not attempt to dump the layout of dependent types when `-fdump-record-layouts-complete` is passed (PR #83688)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 2 22:53:22 PST 2024
================
@@ -5042,7 +5042,7 @@ void RecordDecl::completeDefinition() {
// Layouts are dumped when computed, so if we are dumping for all complete
// types, we need to force usage to get types that wouldn't be used elsewhere.
- if (Ctx.getLangOpts().DumpRecordLayoutsComplete)
+ if (Ctx.getLangOpts().DumpRecordLayoutsComplete && !isDependentType())
----------------
shafik wrote:
Can you update the comment above to reflect this change.
https://github.com/llvm/llvm-project/pull/83688
More information about the cfe-commits
mailing list