Changes in src/ResolvExpr/CastCost.cc [1521de20:52f85e0]
- File:
-
- 1 edited
-
src/ResolvExpr/CastCost.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CastCost.cc
r1521de20 r52f85e0 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 06:57:43 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Mon Oct 05 14:48:45 201513 // Update Count : 511 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 2 15:34:36 2016 13 // Update Count : 7 14 14 // 15 15 … … 69 69 PointerType *destAsPointer = dynamic_cast< PointerType* >( dest ); 70 70 if ( destAsPointer && basicType->isInteger() ) { 71 cost = Cost( 1, 0, 0 ); 71 //cost = Cost( 1, 0, 0 ); 72 cost = Cost::infinity; 72 73 } else { 73 74 ConversionCost::visit( basicType ); … … 87 88 cost = Cost( 0, 0, 1 ); 88 89 } else if ( castResult < 0 ) { 89 cost = Cost( 1, 0, 0 ); 90 cost = Cost::infinity; 91 //cost = Cost( 1, 0, 0 ); 90 92 } // if 91 93 } // if 92 94 } else if ( BasicType *destAsBasic = dynamic_cast< BasicType* >( dest ) ) { 93 95 if ( destAsBasic->isInteger() ) { 94 cost = Cost( 1, 0, 0 ); 96 //cost = Cost( 1, 0, 0 ); 97 cost = Cost::infinity; 95 98 } // if 96 99 }
Note:
See TracChangeset
for help on using the changeset viewer.