Changeset 8603c10 for src


Ignore:
Timestamp:
Mar 2, 2023, 2:08:22 PM (14 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
8bb46d2
Parents:
2d028003
Message:

move assert(env) to appropriate location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInitNew.cpp

    r2d028003 r8603c10  
    522522        {
    523523                static UniqueName tempNamer("_tmp_cp");
    524                 assert( env );
    525524                const CodeLocation loc = impCpCtorExpr->location;
    526525                // CP_CTOR_PRINT( std::cerr << "Type Substitution: " << *env << std::endl; )
     
    534533
    535534                // xxx - this originally mutates arg->result in place. is it correct?
     535                assert( env );
    536536                result = env->applyFree( result.get() ).node;
    537537                auto mutResult = result.get_and_mutate();
Note: See TracChangeset for help on using the changeset viewer.