Skip to content

Commit

Permalink
fix line number information for return statement with enumerator exre…
Browse files Browse the repository at this point in the history
…ssion
  • Loading branch information
rainers committed Jul 17, 2011
1 parent af2d9ac commit 8045693
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/s2ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ void ReturnStatement::toIR(IRState *irs)
assert(e);
}

elem_setLoc(e, loc);
block_appendexp(blx->curblock, e);
block_next(blx, BCretexp, NULL);
}
Expand Down

0 comments on commit 8045693

Please sign in to comment.