[llvm] r271792 - [CodeView] Fix a busted assert in TypeTableBuilder::writeClass

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 4 08:40:32 PDT 2016


Author: majnemer
Date: Sat Jun  4 10:40:31 2016
New Revision: 271792

URL: http://llvm.org/viewvc/llvm-project?rev=271792&view=rev
Log:
[CodeView] Fix a busted assert in TypeTableBuilder::writeClass

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

Modified:
    llvm/trunk/lib/DebugInfo/CodeView/TypeTableBuilder.cpp

Modified: llvm/trunk/lib/DebugInfo/CodeView/TypeTableBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/CodeView/TypeTableBuilder.cpp?rev=271792&r1=271791&r2=271792&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/CodeView/TypeTableBuilder.cpp (original)
+++ llvm/trunk/lib/DebugInfo/CodeView/TypeTableBuilder.cpp Sat Jun  4 10:40:31 2016
@@ -104,7 +104,7 @@ TypeIndex TypeTableBuilder::writeArray(c
 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());
 




More information about the llvm-commits mailing list