forked from OSchip/llvm-project
[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:
parent
9a59584211
commit
862a8ae812
|
@ -104,7 +104,7 @@ TypeIndex TypeTableBuilder::writeArray(const ArrayRecord &Record) {
|
||||||
TypeIndex TypeTableBuilder::writeClass(const ClassRecord &Record) {
|
TypeIndex TypeTableBuilder::writeClass(const ClassRecord &Record) {
|
||||||
assert((Record.getKind() == TypeRecordKind::Struct) ||
|
assert((Record.getKind() == TypeRecordKind::Struct) ||
|
||||||
(Record.getKind() == TypeRecordKind::Class) ||
|
(Record.getKind() == TypeRecordKind::Class) ||
|
||||||
(Record.getKind() == TypeRecordKind::Union));
|
(Record.getKind() == TypeRecordKind::Interface));
|
||||||
|
|
||||||
TypeRecordBuilder Builder(Record.getKind());
|
TypeRecordBuilder Builder(Record.getKind());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue