[clang] [Clang] [Sema] Do not attempt to dump the layout of dependent types when `-fdump-record-layouts-complete` is passed (PR #83688)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 3 01:34:45 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())
----------------
Sirraide wrote:
Sure; I was going to do that but I felt it wasn’t really ‘necessary’, but it can’t hurt.
https://github.com/llvm/llvm-project/pull/83688
More information about the cfe-commits
mailing list