Changeset 98278b3a
- Timestamp:
- Apr 10, 2018, 7:17:08 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 7862059
- Parents:
- 43c6fe77
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cc
r43c6fe77 r98278b3a 276 276 cost = Cost::unsafe; 277 277 } // if 278 // no cases for zero_t/one_t because it should not be possible to convert int, etc. to zero_t/one_t 278 // no cases for zero_t/one_t because it should not be possible to convert int, etc. to zero_t/one_t. 279 279 } 280 280 … … 308 308 // assignResult == 0 means Cost::Infinity 309 309 } // if 310 } else if ( dynamic_cast< ZeroType * >( dest ) ) { 311 cost = Cost::unsafe; 310 // case case for zero_t because it should not be possible to convert pointers to zero_t. 312 311 } // if 313 312 }
Note: See TracChangeset
for help on using the changeset viewer.