- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cc
ra436947 r843054c2 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ConversionCost.cc -- 7 // ConversionCost.cc -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 07:06:19 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 2 17:35:46 201613 // Update Count : 612 // Last Modified On : Sun May 17 07:22:19 2015 13 // Update Count : 4 14 14 // 15 15 … … 157 157 cost = Cost( 0, 0, tableResult ); 158 158 } // if 159 } else if ( dynamic_cast< EnumInstType *>( dest ) ) { 160 // xxx - not positive this is correct, but appears to allow casting int => enum 161 cost = Cost( 1, 0, 0 ); 162 } // if 159 } // if 163 160 } 164 161 … … 209 206 } 210 207 211 void ConversionCost::visit( TraitInstType *inst) {208 void ConversionCost::visit(ContextInstType *inst) { 212 209 } 213 210 … … 250 247 } // if 251 248 } 252 253 void ConversionCost::visit(VarArgsType *varArgsType) {254 if ( dynamic_cast< VarArgsType* >( dest ) ) {255 cost = Cost::zero;256 }257 }258 249 } // namespace ResolvExpr 259 250
Note:
See TracChangeset
for help on using the changeset viewer.