- File:
-
- 1 edited
-
src/ResolvExpr/CandidateFinder.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.cpp
rb69233ac rb8524ca 57 57 // cast away reference from expr 58 58 cost.incReference(); 59 return new ast::CastExpr{ expr ->location, expr, expr->result->stripReferences() };59 return new ast::CastExpr{ expr, expr->result->stripReferences() }; 60 60 } 61 61 … … 126 126 ast::ptr< ast::Type > newType = paramType; 127 127 env.apply( newType ); 128 return new ast::CastExpr{ arg ->location, arg, newType };128 return new ast::CastExpr{ arg, newType }; 129 129 130 130 // xxx - *should* be able to resolve this cast, but at the moment pointers are not … … 793 793 794 794 if ( aggrType.as< ast::ReferenceType >() ) { 795 aggrExpr = 796 new ast::CastExpr{ aggrExpr->location, aggrExpr, aggrType->stripReferences() }; 795 aggrExpr = new ast::CastExpr{ aggrExpr, aggrType->stripReferences() }; 797 796 } 798 797
Note:
See TracChangeset
for help on using the changeset viewer.