Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Mutator.cc

    r135b431 r5809461  
    246246        labelAddressExpr->set_env( maybeMutate( labelAddressExpr->get_env(), *this ) );
    247247        labelAddressExpr->set_result( maybeMutate( labelAddressExpr->get_result(), *this ) );
    248         labelAddressExpr->set_arg( maybeMutate( labelAddressExpr->get_arg(), *this ) );
    249248        return labelAddressExpr;
    250249}
     
    502501}
    503502
    504 Type * Mutator::mutate( FunctionType *functionType ) {
     503Type * Mutator::mutate( ReferenceType * refType ) {
     504        mutateAll( refType->get_forall(), *this );
     505        refType->set_base( maybeMutate( refType->get_base(), *this ) );
     506        return refType;
     507}
     508
     509Type * Mutator::mutate( FunctionType * functionType ) {
    505510        mutateAll( functionType->get_forall(), *this );
    506511        mutateAll( functionType->get_returnVals(), *this );
     
    532537Type * Mutator::mutate( TraitInstType *aggregateUseType ) {
    533538        handleReferenceToType( aggregateUseType );
    534         mutateAll( aggregateUseType->get_members(), *this );
    535539        return aggregateUseType;
    536540}
Note: See TracChangeset for help on using the changeset viewer.