Skip to content

Commit

Permalink
Merge pull request #258 from rainers/issue5585
Browse files Browse the repository at this point in the history
Issue 5585 - bad debug line number info for return statements with enumerator expressions
  • Loading branch information
WalterBright committed Jul 17, 2011
2 parents af2d9ac + 8045693 commit 48f90e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/s2ir.c
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 48f90e0

Please sign in to comment.