diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-07-06 21:07:42 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-07-06 21:07:42 +0000 |
commit | e1e7372e939646c614fd03f37a267e287ffb8392 (patch) | |
tree | 2a15701bc4a072656ce5c97c584b2d277b8acf84 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 6f9d01bbd525aa9c5332975ec20547b3fdd338c2 (diff) | |
download | bcm5719-llvm-e1e7372e939646c614fd03f37a267e287ffb8392.tar.gz bcm5719-llvm-e1e7372e939646c614fd03f37a267e287ffb8392.zip |
[CodeView] Unions are always sealed
It is impossible to inherit from a union. We are missing a way to
represent this in IR for classes/structs...
llvm-svn: 274675
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index fe63b7043c5..cb4310836dd 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -1536,7 +1536,7 @@ TypeIndex CodeViewDebug::lowerTypeUnion(const DICompositeType *Ty) { } TypeIndex CodeViewDebug::lowerCompleteTypeUnion(const DICompositeType *Ty) { - ClassOptions CO = getCommonClassOptions(Ty); + ClassOptions CO = ClassOptions::Sealed | getCommonClassOptions(Ty); TypeIndex FieldTI; unsigned FieldCount; bool ContainsNestedClass; |