Ignore:
Timestamp:
Jun 30, 2023, 2:57:48 PM (11 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
d464b79
Parents:
599dc6a
Message:

fixed bug where virtual dtor would not work if dtors or ctors of the type had unnamed params

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Virtual/VirtualDtor.cpp

    r599dc6a r4bae7b4  
    141141        auto structIter = structDecls.find( instType->aggr() );
    142142        if ( structIter == structDecls.end() ) return;
     143
     144        // If first param not named we need to name it to use it
     145        if ( decl->params.at(0)->name == "" )
     146            mutate( decl->params.at(0).get() )->name = "__CFA_Virt_Dtor_param";
    143147
    144148        if ( decl->name == "^?{}") {
Note: See TracChangeset for help on using the changeset viewer.