summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-07-06 21:07:42 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-07-06 21:07:42 +0000
commite1e7372e939646c614fd03f37a267e287ffb8392 (patch)
tree2a15701bc4a072656ce5c97c584b2d277b8acf84 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent6f9d01bbd525aa9c5332975ec20547b3fdd338c2 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud