Changes in src/ControlStruct/MLEMutator.cc [eb3261f:f6d7e0f]
- File:
-
- 1 edited
-
src/ControlStruct/MLEMutator.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/MLEMutator.cc
reb3261f rf6d7e0f 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu Jun 04 15:12:33201513 // Update Count : 17 312 // Last Modified On : Sat Jun 27 10:56:14 2015 13 // Update Count : 174 14 14 // 15 15 … … 143 143 if ( enclosingLoops.empty() ) { 144 144 throw SemanticError( "'continue' outside a loop" ); 145 } else if ( std::find( enclosingLoops.begin(), enclosingLoops.end(), (*targetTable)[branchStmt->get_target()] ) == enclosingLoops.end() ) {145 } else if ( branchStmt->get_target() != "" && std::find( enclosingLoops.begin(), enclosingLoops.end(), (*targetTable)[branchStmt->get_target()] ) == enclosingLoops.end() ) { 146 146 throw SemanticError( "'continue' target label must be an enclosing loop: " + originalTarget ); 147 147 }
Note:
See TracChangeset
for help on using the changeset viewer.