Changeset 647d633


Ignore:
Timestamp:
Mar 6, 2024, 6:11:08 AM (4 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
76fe046, 7a29392f
Parents:
f6e8c67
Message:

Remove unused variables

Location:
src/ResolvExpr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CommonType.cc

    rf6e8c67 r647d633  
    681681
    682682        void postvisit( const ast::EnumPosType * enumPos ) {
    683                 if ( auto type2AsPos = dynamic_cast<const ast::EnumPosType *>(type2) ) {
     683                if ( dynamic_cast<const ast::EnumPosType *>(type2) ) {
    684684                        // result = commonType( type2AsPos->instance, enumPos->instance, tenv, need, have, open, widen );
    685685                        result = enumPos;
    686                 } else if (  auto typeAsBasic = dynamic_cast<const ast::BasicType *>(type2) ) {
     686                } else if ( dynamic_cast<const ast::BasicType *>(type2) ) {
    687687                        result = type2;
    688688                }
  • src/ResolvExpr/ConversionCost.cc

    rf6e8c67 r647d633  
    366366}
    367367
    368 void ConversionCost::postvisit( const ast::EnumInstType * inst ) {
     368void ConversionCost::postvisit( const ast::EnumInstType * ) {
    369369        static ast::ptr<ast::BasicType> integer = { new ast::BasicType( ast::BasicType::SignedInt ) };
    370370        cost = costCalc( integer, dst, srcIsLvalue, symtab, env );
     
    375375
    376376void ConversionCost::postvisit( const ast::EnumPosType * src ) {
    377         if ( auto dstBase = dynamic_cast<const ast::EnumPosType *>( dst ) ) {
     377        if ( dynamic_cast<const ast::EnumPosType *>( dst ) ) {
    378378                // cost = costCalc( src->instance, dstBase->instance, srcIsLvalue, symtab, env );
    379379                // if ( cost < Cost::unsafe ) cost.incSafe();
Note: See TracChangeset for help on using the changeset viewer.