- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cc
r843054c2 ra436947 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 : Sun May 17 07:22:19 201513 // Update Count : 412 // Last Modified On : Wed Mar 2 17:35:46 2016 13 // Update Count : 6 14 14 // 15 15 … … 157 157 cost = Cost( 0, 0, tableResult ); 158 158 } // if 159 } // 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 160 163 } 161 164 … … 206 209 } 207 210 208 void ConversionCost::visit( ContextInstType *inst) {211 void ConversionCost::visit(TraitInstType *inst) { 209 212 } 210 213 … … 247 250 } // if 248 251 } 252 253 void ConversionCost::visit(VarArgsType *varArgsType) { 254 if ( dynamic_cast< VarArgsType* >( dest ) ) { 255 cost = Cost::zero; 256 } 257 } 249 258 } // namespace ResolvExpr 250 259
Note:
See TracChangeset
for help on using the changeset viewer.