Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/LabelFixer.cc

    rbe5aa1b r843054c2  
    99// Author           : Rodolfo G. Esteves
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed May 27 16:16:14 2015
    13 // Update Count     : 4
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Tue May 19 15:25:59 2015
     13// Update Count     : 1
    1414//
    1515
     
    4040
    4141        void LabelFixer::visit( FunctionDecl *functionDecl ) {
    42                 maybeAccept( functionDecl->get_statements(), *this );
     42                if ( functionDecl->get_statements() != 0 )
     43                        functionDecl->get_statements()->accept( *this );
    4344
    4445                MLEMutator mlemut( resolveJumps(), generator );
     
    101102                        Entry *e = i->second;
    102103
    103                         if ( def_us.find ( e->get_definition() ) == def_us.end() ) {
    104                                 def_us[ e->get_definition() ] = e;                             
    105                         } else {
     104                        if ( def_us.find ( e->get_definition() ) == def_us.end() )
     105                                def_us[ e->get_definition() ] = e;
     106                        else
    106107                                if ( e->used() )
    107108                                        def_us[ e->get_definition() ]->add_uses( e->get_uses() );
    108                         }
    109109                }
    110110
Note: See TracChangeset for help on using the changeset viewer.