Skip to content

Commit

Permalink
Fix issue 23000 - final switch error has no line number with -checkac…
Browse files Browse the repository at this point in the history
…tion=C
  • Loading branch information
dkorpel committed Apr 10, 2022
1 parent 863fec7 commit cb68e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dmd/e2ir.d
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ extern (C++) class ToElemVisitor : Visitor
if (irs.params.checkAction == CHECKACTION.C)
{
auto econd = toElem(ae.e1, irs);
auto ea = callCAssert(irs, ae.e1.loc, ae.e1, ae.msg, null);
auto ea = callCAssert(irs, ae.loc, ae.e1, ae.msg, null);
auto eo = el_bin(OPoror, TYvoid, econd, ea);
elem_setLoc(eo, ae.loc);
result = eo;
Expand Down

0 comments on commit cb68e36

Please sign in to comment.