Changes in src/SynTree/Statement.cc [0f8e4ac:f1b1e4c]
- File:
-
- 1 edited
-
src/SynTree/Statement.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r0f8e4ac rf1b1e4c 87 87 Statement( labels ), originalTarget( _target ), target( _target ), computedTarget( NULL ), type( _type ) { 88 88 //actually this is a syntactic error signaled by the parser 89 if ( type == BranchStmt::Goto && target. empty())89 if ( type == BranchStmt::Goto && target.size() == 0 ) 90 90 throw SemanticError("goto without target"); 91 91 }
Note:
See TracChangeset
for help on using the changeset viewer.