summary refs log tree commit diff
path: root/src/test/mir-opt/76803_regression.encode.SimplifyBranchSame.diff
AgeCommit message (Collapse)AuthorLines
2021-08-25Fix debugger stepping behavior around `match` expressionsWesley Wiser-4/+4
Previously, we would set up the source lines for `match` expressions so that the code generated to perform the test of the scrutinee was matched to the line of the arm that required the test and then jump from the arm block to the "next" block was matched to all of the lines in the `match` expression. While that makes sense, it has the side effect of causing strange stepping behavior in debuggers. I've changed the source information so that all of the generated tests are sourced to `match {scrutinee}` and the jumps are sourced to the last line of the block they are inside. This resolves the weird stepping behavior in all debuggers and resolves some instances of "ambiguous symbol" errors in WinDbg preventing the user from setting breakpoints at `match` expressions.
2020-09-19Fix #76803Simon Vandel Sillesen-9/+7
Check that the variant index matches the target value from the SwitchInt we came from
2020-09-19Add regression test showcasing miscompilationSimon Vandel Sillesen-0/+30