Skip to content

Commit

Permalink
Replace assertion to allow clean exit.
Browse files Browse the repository at this point in the history
The assertion was triggered in a rare case where other errors lead
to a phased PC at the end of a source file. The original errors
were not shown anymore, so the user had no clue what caused the
problem.
  • Loading branch information
docbacardi committed Apr 11, 2021
1 parent ba43fe1 commit 98c93ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ void segment_enterSegElem(seglistsize_t segidx)
* TODO: warning instead of this
* something like "PC still phased at end of Segment!"
*/
assert(false);
//assert(false);
fprintf(stderr, "WARNING: PC still phased at end of segment.\n");
}
seg->next_segelem = segidx;
}
Expand Down

0 comments on commit 98c93ba

Please sign in to comment.