================ @@ -72,6 +72,14 @@ struct CVTagRecord { return cvunion.Name; } + CompilerContextKind contextKind() const { + if (m_kind == Struct || m_kind == Class) + return CompilerContextKind::ClassOrStruct; + if (m_kind == Enum) + return CompilerContextKind::Enum; + return CompilerContextKind::Union; ---------------- Michael137 wrote:
Should we check (or assert) that the `m_kind` is in fact a union? https://github.com/llvm/llvm-project/pull/149876 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits