From 862a8ae812fa5827d5b7790b192a9bd5d24e735f Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sat, 4 Jun 2016 15:40:31 +0000 Subject: [PATCH] [CodeView] Fix a busted assert in TypeTableBuilder::writeClass It was checking for Union when it should have checked for Interface. llvm-svn: 271792 --- llvm/lib/DebugInfo/CodeView/TypeTableBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/DebugInfo/CodeView/TypeTableBuilder.cpp b/llvm/lib/DebugInfo/CodeView/TypeTableBuilder.cpp index 3f48f6495f24..13d1ae50069d 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());