Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    rb69233ac rb8524ca  
    5757                // cast away reference from expr
    5858                cost.incReference();
    59                 return new ast::CastExpr{ expr->location, expr, expr->result->stripReferences() };
     59                return new ast::CastExpr{ expr, expr->result->stripReferences() };
    6060        }
    6161       
     
    126126                        ast::ptr< ast::Type > newType = paramType;
    127127                        env.apply( newType );
    128                         return new ast::CastExpr{ arg->location, arg, newType };
     128                        return new ast::CastExpr{ arg, newType };
    129129
    130130                        // xxx - *should* be able to resolve this cast, but at the moment pointers are not
     
    793793                       
    794794                        if ( aggrType.as< ast::ReferenceType >() ) {
    795                                 aggrExpr =
    796                                         new ast::CastExpr{ aggrExpr->location, aggrExpr, aggrType->stripReferences() };
     795                                aggrExpr = new ast::CastExpr{ aggrExpr, aggrType->stripReferences() };
    797796                        }
    798797
Note: See TracChangeset for help on using the changeset viewer.