Ignore:
Timestamp:
Nov 15, 2021, 2:51:44 PM (9 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
enum, forall-pointer-decay, master, pthread-emulation
Children:
1387ea0
Parents:
5dcb881
Message:

Translation of Validate F; and some improvements in some helpers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInitNew.cpp

    r5dcb881 rce36b55  
    591591                // need to add __Destructor for _tmp_cp variables as well
    592592
    593                 assertf( ast::dtorStruct && ast::dtorStruct->members.size() == 2, "Destructor generation requires __Destructor definition." );
     593                assertf( ast::dtorStruct, "Destructor generation requires __Destructor definition." );
     594                assertf( ast::dtorStruct->members.size() == 2, "__Destructor definition does not have expected fields." );
    594595                assertf( ast::dtorStructDestroy, "Destructor generation requires __destroy_Destructor." );
    595596
     
    12161217
    12171218                                                        static UniqueName memberDtorNamer = { "__memberDtor" };
    1218                                                         assertf( Validate::dtorStruct, "builtin __Destructor not found." );
    1219                                                         assertf( Validate::dtorStructDestroy, "builtin __destroy_Destructor not found." );
     1219                                                        assertf( ast::dtorStruct, "builtin __Destructor not found." );
     1220                                                        assertf( ast::dtorStructDestroy, "builtin __destroy_Destructor not found." );
    12201221
    12211222                                                        ast::Expr * thisExpr = new ast::CastExpr( new ast::AddressExpr( new ast::VariableExpr(loc, thisParam ) ), new ast::PointerType( new ast::VoidType(), ast::CV::Qualifiers() ) );
Note: See TracChangeset for help on using the changeset viewer.