Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Mangler.cc

    r3e5dd913 r361bf01  
    671671                                        int dcount = 0, fcount = 0, vcount = 0, acount = 0;
    672672                                        mangleName += Encoding::forall;
    673                                         for ( auto & decl : ptype->forall ) {
     673                                        for ( const ast::TypeDecl * decl : ptype->forall ) {
    674674                                                switch ( decl->kind ) {
    675675                                                case ast::TypeDecl::Kind::Dtype:
     
    686686                                                } // switch
    687687                                                varNums[ decl->name ] = std::make_pair( nextVarNum, (int)decl->kind );
    688                                         } // for
    689                                         for ( auto & assert : ptype->assertions ) {
    690                                                 ast::Pass<Mangler_new> sub_mangler(
    691                                                         mangleOverridable, typeMode, mangleGenericParams, nextVarNum, varNums );
    692                                                 assert->var->accept( sub_mangler );
    693                                                 assertionNames.push_back( sub_mangler.core.get_mangleName() );
    694                                                 acount++;
     688                                                for ( const ast::DeclWithType * assert : decl->assertions ) {
     689                                                        ast::Pass<Mangler_new> sub_mangler(
     690                                                                mangleOverridable, typeMode, mangleGenericParams, nextVarNum, varNums );
     691                                                        assert->accept( sub_mangler );
     692                                                        assertionNames.push_back( sub_mangler.core.get_mangleName() );
     693                                                        acount++;
     694                                                } // for
    695695                                        } // for
    696696                                        mangleName += std::to_string( dcount ) + "_" + std::to_string( fcount ) + "_" + std::to_string( vcount ) + "_" + std::to_string( acount ) + "_";
Note: See TracChangeset for help on using the changeset viewer.