Skip to content

Commit

Permalink
fatal() in tocsym.d should be asserts (#16274)
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright authored Mar 1, 2024
1 parent 7aec649 commit 5957736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/src/dmd/tocsym.d
Original file line number Diff line number Diff line change
Expand Up @@ -561,13 +561,13 @@ private Symbol *createImport(Symbol *sym, Loc loc)
int idlen;
if (target.os & Target.OS.Posix)
{
error(loc, "could not generate import symbol `%s` for this platform", n);
fatal();
error(loc, "cannot generate import symbol `%s` for Posix platform", n);
assert(0);
}
else if (target.os & Target.OS.Windows && sym.Stype.Tty & mTYthread)
{
error(loc, "cannot generate import symbol for thread local symbol `%s`", n);
fatal();
assert(0);
}
else if (sym.Stype.Tmangle == mTYman_std && tyfunc(sym.Stype.Tty))
{
Expand Down

0 comments on commit 5957736

Please sign in to comment.