dcbaker / meson-plus-plus

An experimental and incomplete implementation of Meson in C++, for solving Meson's bootstrapping issue.
Apache License 2.0
50 stars 7 forks source link

mir/passes: add an unreachable code pass #95

Closed dcbaker closed 2 years ago

dcbaker commented 2 years ago

This clears dead code created by anything following an error. We know that once the error is guaranteed to be executed that anything after that should not be. This means that we can delete any instructions after the error, and break any next pointer the block may have.

Fixes #57