Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInitNew.cpp

    r397c4392 re563edf  
    107107        private:
    108108                /// hack to implement WithTypeSubstitution while conforming to mutation safety.
    109                 ast::TypeSubstitution * env         = nullptr;
    110                 bool                    envModified = false;
     109                ast::TypeSubstitution * env;
     110                bool                    envModified;
    111111        };
    112112
     
    522522        {
    523523                static UniqueName tempNamer("_tmp_cp");
     524                assert( env );
    524525                const CodeLocation loc = impCpCtorExpr->location;
    525526                // CP_CTOR_PRINT( std::cerr << "Type Substitution: " << *env << std::endl; )
     
    533534
    534535                // 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.