Changes in src/SynTree/Statement.cc [0f8e4ac:74d1804]
- File:
-
- 1 edited
-
src/SynTree/Statement.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r0f8e4ac r74d1804 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 } … … 399 399 } 400 400 401 ImplicitCtorDtorStmt::ImplicitCtorDtorStmt( const ImplicitCtorDtorStmt & other ) : Statement( other ), callStmt( other.callStmt) {401 ImplicitCtorDtorStmt::ImplicitCtorDtorStmt( const ImplicitCtorDtorStmt & other ) : Statement( other ), callStmt( maybeClone( other.callStmt ) ) { 402 402 } 403 403 404 404 ImplicitCtorDtorStmt::~ImplicitCtorDtorStmt() { 405 delete callStmt; 405 406 } 406 407
Note:
See TracChangeset
for help on using the changeset viewer.