Changeset 30b65d8 for src/InitTweak


Ignore:
Timestamp:
Nov 10, 2016, 4:16:32 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
8f9cc50
Parents:
b726084
Message:

always construct polymorphic types, substitute generic type parameters when resolving initializers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/GenInit.cc

    rb726084 r30b65d8  
    246246                        }
    247247                }
    248                 return managedTypes.find( SymTab::Mangler::mangle( type ) ) != managedTypes.end();
     248                // a type is managed if it appears in the map of known managed types, or if it contains any polymorphism (is a type variable or generic type containing a type variable)
     249                return managedTypes.find( SymTab::Mangler::mangle( type ) ) != managedTypes.end() || GenPoly::isPolyType( type );
    249250        }
    250251
Note: See TracChangeset for help on using the changeset viewer.