commit | 329c83f95964bc7d0eb6cf4a6d8663c72b3bbb0d | [log] [tgz] |
---|---|---|
author | Davide Italiano <davide@freebsd.org> | Wed Nov 23 01:42:39 2016 +0000 |
committer | Davide Italiano <davide@freebsd.org> | Wed Nov 23 01:42:39 2016 +0000 |
tree | 1ab880a175e8e87ba0e92730df9e001003758735 | |
parent | 6356463f9a642e9fe24d1fb0de7051637972b054 [diff] |
[SCCP] Add a test for switches on undef. Without this test, you can just remove the code fixing the switch to the first constant in ResolvedUndefs in and everything pass. This test, instead, fails with an assertion if the code is removed. Found while refactoring SCCP to integrate undef in the solver. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287731 91177308-0d34-0410-b5e6-96231b3b80d8