Changeset eb1be63 for src/ResolvExpr


Ignore:
Timestamp:
Jul 28, 2020, 2:38:39 PM (4 years ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
3251b66
Parents:
c408483
Message:

conversion cost pass should not consider structs again after types compatible check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.cc

    rc408483 reb1be63  
    393393
    394394        void ConversionCost::postvisit( const StructInstType * inst ) {
     395                /*
    395396                if ( const StructInstType * destAsInst = dynamic_cast< const StructInstType * >( dest ) ) {
    396397                        if ( inst->name == destAsInst->name ) {
     
    398399                        } // if
    399400                } // if
     401                */
    400402        }
    401403
    402404        void ConversionCost::postvisit( const UnionInstType * inst ) {
     405                /*
    403406                if ( const UnionInstType * destAsInst = dynamic_cast< const UnionInstType * >( dest ) ) {
    404407                        if ( inst->name == destAsInst->name ) {
     
    406409                        } // if
    407410                } // if
     411                */
    408412        }
    409413
     
    682686
    683687void ConversionCost_new::postvisit( const ast::StructInstType * structInstType ) {
     688        /*
    684689        if ( const ast::StructInstType * dstAsInst =
    685690                        dynamic_cast< const ast::StructInstType * >( dst ) ) {
     
    688693                }
    689694        }
     695        */
    690696}
    691697
    692698void ConversionCost_new::postvisit( const ast::UnionInstType * unionInstType ) {
     699        /*
    693700        if ( const ast::UnionInstType * dstAsInst =
    694701                        dynamic_cast< const ast::UnionInstType * >( dst ) ) {
     
    697704                }
    698705        }
     706        */
    699707}
    700708
Note: See TracChangeset for help on using the changeset viewer.