Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/LabelFixer.cc

    r0a0a65b r1869adf  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed Jul 08 12:36:46 2015
    13 // Update Count     : 145
     12// Last Modified On : Wed Jun 24 16:24:34 2015
     13// Update Count     : 141
    1414//
    1515
     
    6161
    6262        void LabelFixer::visit( FunctionDecl *functionDecl ) {
    63                 // need to go into a nested function in a fresh state
    64                 std::map < Label, Entry *> oldLabelTable = labelTable;
    65                 labelTable.clear();
    66 
    6763                maybeAccept( functionDecl->get_statements(), *this );
    6864
    6965                MLEMutator mlemut( resolveJumps(), generator );
    7066                functionDecl->acceptMutator( mlemut );
    71 
    72                 // and remember the outer function's labels when
    73                 // returning to it
    74                 labelTable = oldLabelTable;
    7567        }
    7668
Note: See TracChangeset for help on using the changeset viewer.