You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling with optimization, LLVM will sometimes optimize out faulty IR we generated. The same IR can lead to segfaults when compiling without optimizations - this leaves quite a large gap in our automated test-coverage and will cause bugs to slip through.
Here's an example (which is already on master, running - and passing - with every test-run) I stumbled upon while working on initializing temporary variables:
When compiling with optimization, LLVM will sometimes optimize out faulty IR we generated. The same IR can lead to segfaults when compiling without optimizations - this leaves quite a large gap in our automated test-coverage and will cause bugs to slip through.
Here's an example (which is already on master, running - and passing - with every test-run) I stumbled upon while working on initializing temporary variables:
rusty/tests/lit/single/init/function_locals.st
Lines 1 to 27 in cbe548d
This lit test will pass the CI without problems, however, if the same code is compiled with
-Onone
it leads to a segfault when executed.We should update our runner so that all LIT tests are ran with default optimization as well as with
-Onone
.The text was updated successfully, but these errors were encountered: