Changes in src/ResolvExpr/CastCost.cpp [d3aa55e9:85855b0]
- File:
-
- 1 edited
-
src/ResolvExpr/CastCost.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CastCost.cpp
rd3aa55e9 r85855b0 53 53 void postvisit( const ast::EnumInstType * enumInst ) { 54 54 cost = conversionCost( enumInst, dst, srcIsLvalue, symtab, env ); 55 56 if (Cost::unsafe < cost) {57 static ast::ptr<ast::BasicType> integer = { new ast::BasicType( ast::BasicKind::SignedInt ) };58 Cost intCost = costCalc( integer, dst, srcIsLvalue, symtab, env );59 cost = intCost < cost? intCost: cost;60 }61 if ( enumInst->base->isTyped && enumInst->base->base ) {62 auto baseConversionCost =63 castCost( enumInst->base->base, dst, srcIsLvalue, symtab, env );64 cost = baseConversionCost < cost? baseConversionCost: cost;65 }66 55 } 67 56
Note:
See TracChangeset
for help on using the changeset viewer.