diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-04-20 17:54:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-20 17:54:39 -0700 |
| commit | 163d3068e332703cc499446fff37230a7c68e8f2 (patch) | |
| tree | a1d0b9507ab01c908811603d8cde47736bdbe3ef /source/slang/ir-validate.cpp | |
| parent | 2f782d403ae5729b6c93fbe92577ee01f7a8d608 (diff) | |
Better diagnostics when compilation is aborted (#517)
* Improve messages when compilation is aborted.
Make sure to include the information from any `Slang::Exception` that was thrown, so that the poor user can at least point us at our own message string from an assertion failure.
This doesn't provide them line-number information in their code or the Slang codebase, so there is still work to be done in making the compiler more friendly about this stuff.
* When aborting compilation, try to note what source location we were working on
This is handled by having exception handlers on the stack at key bottleneck points in semantic checking and IR generation, which can then emit a diagnostic to note what we were working on when things failed.
This is not intended to be an indiciation to the user that their code is at fault for a compiler crash (it is always our fault), but might give them a chance to work around whatever bug is blocking them.
Diffstat (limited to 'source/slang/ir-validate.cpp')
0 files changed, 0 insertions, 0 deletions
