Changeset 031a2c95


Ignore:
Timestamp:
Mar 13, 2017, 2:14:46 PM (7 years ago)
Author:
Aaron Moss <a3moss@…>
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:
8ef9c5e7
Parents:
be8bd88
Message:

Fix to otype T* => void* conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/InstantiateGeneric.cc

    rbe8bd88 r031a2c95  
    237237                                        }
    238238                                        out.push_back( new TypeExpr( voidPtr ) );
     239                                        // this type is still dtype-static, no change to gt
    239240                                } else {
    240241                                        // Just clone parameter type
    241242                                        out.push_back( paramType->clone() );
     243                                        // make the struct concrete or dynamic depending on the parameter
     244                                        gt |= isPolyType( paramType->get_type() ) ? genericType::dynamic : genericType::concrete;
    242245                                }
    243                                 // make the struct concrete or dynamic depending on the parameter
    244                                 gt |= isPolyType( paramType->get_type() ) ? genericType::dynamic : genericType::concrete;
    245246                        } else switch ( (*baseParam)->get_kind() ) {
    246247                                case TypeDecl::Dtype:
Note: See TracChangeset for help on using the changeset viewer.