summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-04 15:40:31 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-04 15:40:31 +0000
commit862a8ae812fa5827d5b7790b192a9bd5d24e735f (patch)
tree39255b47befa2ce380e6e1822857cefe6aefa9cd /llvm/lib/DebugInfo/CodeView
parent9a59584211d589b9e4c9d595f41a2f0eda55ea65 (diff)
downloadbcm5719-llvm-862a8ae812fa5827d5b7790b192a9bd5d24e735f.tar.gz
bcm5719-llvm-862a8ae812fa5827d5b7790b192a9bd5d24e735f.zip
[CodeView] Fix a busted assert in TypeTableBuilder::writeClass
It was checking for Union when it should have checked for Interface. llvm-svn: 271792
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView')
-rw-r--r--llvm/lib/DebugInfo/CodeView/TypeTableBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/TypeTableBuilder.cpp b/llvm/lib/DebugInfo/CodeView/TypeTableBuilder.cpp
index 3f48f6495f2..13d1ae50069 100644
--- a/llvm/lib/DebugInfo/CodeView/TypeTableBuilder.cpp
+++ b/llvm/lib/DebugInfo/CodeView/TypeTableBuilder.cpp
@@ -104,7 +104,7 @@ TypeIndex TypeTableBuilder::writeArray(const ArrayRecord &Record) {
TypeIndex TypeTableBuilder::writeClass(const ClassRecord &Record) {
assert((Record.getKind() == TypeRecordKind::Struct) ||
(Record.getKind() == TypeRecordKind::Class) ||
- (Record.getKind() == TypeRecordKind::Union));
+ (Record.getKind() == TypeRecordKind::Interface));
TypeRecordBuilder Builder(Record.getKind());
OpenPOWER on IntegriCloud