diff --git a/gen/classes.cpp b/gen/classes.cpp index 8aa0e7a1..2ee13748 100644 --- a/gen/classes.cpp +++ b/gen/classes.cpp @@ -636,6 +636,11 @@ static unsigned build_classinfo_flags(ClassDeclaration* cd) L2: if (hasOffTi) flags |= 4; + + // always define the typeinfo field. + // why would ever not do this? + flags |= 32; + return flags; }