Changeset 5af7306 for src/ResolvExpr/ConversionCost.cc
- Timestamp:
- Apr 23, 2018, 4:46:43 PM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- 2efe4b8
- Parents:
- fb97252f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cc
rfb97252f r5af7306 20 20 #include <string> // for operator==, string 21 21 22 #include "Common/GC.h" // for new_static_root 22 23 #include "ResolvExpr/Cost.h" // for Cost 23 24 #include "ResolvExpr/TypeEnvironment.h" // for EqvClass, TypeEnvironment … … 353 354 void ConversionCost::postvisit( EnumInstType * ) { 354 355 static Type::Qualifiers q; 355 static BasicType integer( q, BasicType::SignedInt );356 cost = costFunc( &integer, dest, indexer, env ); // safe if dest >= int356 static BasicType* integer = new_static_root<BasicType>( q, BasicType::SignedInt ); 357 cost = costFunc( integer, dest, indexer, env ); // safe if dest >= int 357 358 if ( cost < Cost::unsafe ) { 358 359 cost.incSafe();
Note: See TracChangeset
for help on using the changeset viewer.