1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

[CodeView] Fix a busted assert in TypeTableBuilder::writeClass

It was checking for Union when it should have checked for Interface.

llvm-svn: 271792
This commit is contained in:
David Majnemer 2016-06-04 15:40:31 +00:00
parent 838aba6c09
commit 08e81eef3f

View File

@ -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());