Fix crash for classes with ignored base class

This fixes class_ignore.cpptest.
This commit is contained in:
Vadim Zeitlin 2021-12-08 00:14:06 +01:00
commit cc76e3a1d7
2 changed files with 2 additions and 2 deletions

View file

@ -983,7 +983,8 @@ public:
first_base_ = Copy(i.item);
}
Printv(base_classes, " : public ", Getattr(first_base_, "sym:name"), NIL);
if (first_base_)
Printv(base_classes, " : public ", Getattr(first_base_, "sym:name"), NIL);
}
Printv(cxx_wrappers_.sect_types,