Changeset 98278b3a


Ignore:
Timestamp:
Apr 10, 2018, 7:17:08 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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
Message:

Remove conversion from pointer type to zero_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.cc

    r43c6fe77 r98278b3a  
    276276                        cost = Cost::unsafe;
    277277                } // 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.
    279279        }
    280280
     
    308308                                // assignResult == 0 means Cost::Infinity
    309309                        } // 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.
    312311                } // if
    313312        }
Note: See TracChangeset for help on using the changeset viewer.