It is impossible to inherit from a union. We are missing a way to
represent this in IR for classes/structs...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274675
91177308-0d34-0410-b5e6-
96231b3b80d8
}
TypeIndex CodeViewDebug::lowerCompleteTypeUnion(const DICompositeType *Ty) {
- ClassOptions CO = getCommonClassOptions(Ty);
+ ClassOptions CO = ClassOptions::Sealed | getCommonClassOptions(Ty);
TypeIndex FieldTI;
unsigned FieldCount;
bool ContainsNestedClass;
; CHECK: Union (0x100B) {
; CHECK: TypeLeafKind: LF_UNION (0x1506)
; CHECK: MemberCount: 2
-; CHECK: Properties [ (0x200)
+; CHECK: Properties [ (0x600)
; CHECK: HasUniqueName (0x200)
+; CHECK: Sealed (0x400)
; CHECK: ]
; CHECK: FieldList: <field list> (0x100A)
; CHECK: SizeOf: 4