Changeset a32b204 for translator/ControlStruct
- Timestamp:
- May 17, 2015, 1:19:35 PM (11 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 0dd3a2f
- Parents:
- b87a5ed
- Location:
- translator/ControlStruct
- Files:
-
- 2 edited
-
CaseRangeMutator.cc (modified) (2 diffs)
-
MLEMutator.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
translator/ControlStruct/CaseRangeMutator.cc
rb87a5ed ra32b204 117 117 if ( ch_lo > ch_hi ) { char t=ch_lo; ch_lo=ch_hi; ch_hi=t; } 118 118 119 for ( char c = ch_lo; c <= ch_hi; c++ ){119 for ( char c = ch_lo; c <= ch_hi; c++ ){ 120 120 Type::Qualifiers q; 121 121 Constant cnst( new BasicType(q, BasicType::Char), … … 154 154 if ( i_lo > i_hi ) { int t=i_lo; i_lo=i_hi; i_hi=t; } 155 155 156 for ( int c = i_lo; c <= i_hi; c++ ){156 for ( int c = i_lo; c <= i_hi; c++ ){ 157 157 Type::Qualifiers q; 158 158 Constant cnst( new BasicType(q, ty_hi->get_kind()), // figure can't hurt (used to think in positives) -
translator/ControlStruct/MLEMutator.cc
rb87a5ed ra32b204 23 23 *k = (*k)->acceptMutator(*this); 24 24 25 if ( ! get_breakLabel().empty() ) {25 if ( ! get_breakLabel().empty() ) { 26 26 std::list< Statement * >::iterator next = k; next++; 27 27 if ( next == kids.end() ) { … … 98 98 99 99 Label newLabel; 100 switch ( branchStmt->get_type() ) {100 switch ( branchStmt->get_type() ) { 101 101 case BranchStmt::Break: 102 102 if ( check->get_breakExit() != "" )
Note:
See TracChangeset
for help on using the changeset viewer.