aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-11-28 16:47:20 +0000
committergingerBill <bill@gingerbill.org>2018-11-28 16:47:20 +0000
commit2301ae157c1ef4077a3ca8e87ea4032a29a05ace (patch)
tree7c8654cf35186b2dbddb9b9bbad7b4e762d067df /src
parentd3c7d6d485a6851e64e252312882323461cff83f (diff)
Fix recursive loop bug for is_type_polymorphic
Diffstat (limited to 'src')
-rw-r--r--src/types.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 3969d9603..a85a9fdd1 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1199,11 +1199,11 @@ bool is_type_polymorphic(Type *t, bool or_specialized=false) {
if (or_specialized && t->Union.is_poly_specialized) {
return true;
}
- for_array(i, t->Union.variants) {
- if (is_type_polymorphic(t->Union.variants[i], or_specialized)) {
- return true;
- }
- }
+ // for_array(i, t->Union.variants) {
+ // if (is_type_polymorphic(t->Union.variants[i], or_specialized)) {
+ // return true;
+ // }
+ // }
break;
case Type_Struct:
if (t->Struct.is_polymorphic) {