Changes in / [76b507d:0c327ce]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Virtual/Tables.cpp

    r76b507d r0c327ce  
    122122                        ) );
    123123                }
     124                //ast::Expr * expr = buildInitExpr(...);
     125                //inits.push_back( new ast::SingleInit( location, expr ) )
    124126        }
    125127
     
    160162        assert( vtableType );
    161163        assert( exceptType );
    162 
    163         // If this is called after Fix Return Statements (currently it is in
    164         // Implement Concurrent Keywords) then this must be marked as unused
    165         // to avoid warnings.
    166         ast::ObjectDecl * frontRet = new ast::ObjectDecl( location,
    167                 "_retvalue",
    168                 new ast::ReferenceType( vtableType )
    169         );
    170         frontRet->attributes.emplace_back( new ast::Attribute( "unused" ) );
    171 
    172164        return new ast::FunctionDecl(
    173165                location,
     
    178170                        new ast::PointerType( exceptType )
    179171                ) },
    180                 { frontRet },
     172                { new ast::ObjectDecl(
     173                        location,
     174                        "_retvalue",
     175                        new ast::ReferenceType( vtableType )
     176                ) },
    181177                nullptr,
    182178                ast::Storage::Classes(),
Note: See TracChangeset for help on using the changeset viewer.