[clang] [clang][AST] fix dereference on class/struct layouts check. (PR #83686)

2024-03-03 Thread Jack Ren via cfe-commits
bjrjk wrote: Hello, this is a mininal reproducer execute with `clang++ -Xclang -fdump-record-layouts-complete test.cpp`: ```cpp template struct integral_constant { static constexpr const _Tp value = __v; typedef integral_constant type; }; template using _BoolConstant = integral_constant;

[clang] [Clang] [Sema] Do not attempt to dump the layout of dependent types when `-fdump-record-layouts-complete` is passed (PR #83688)

2024-03-03 Thread Jack Ren via cfe-commits
bjrjk wrote: > > This might also fix #83671 > > From what I saw, that’s a different problem, and there’s a different pr for > that already, but I’ll double-check. Seems not same problem, root cause are different. https://github.com/llvm/llvm-project/pull/83688