PR tree-optimization/96818 - cast label range to type of switch operand
authorAldy Hernandez <aldyh@redhat.com>
Fri, 28 Aug 2020 16:44:58 +0000 (18:44 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Mon, 31 Aug 2020 14:55:16 +0000 (16:55 +0200)
commitd503cd98713a41aad34ade2b9b0d9973efb21e11
treeb4dac1ef0eb03cc1752ee65c9c8c28e2b7ccf2d5
parent6940c20bbb3b5864e8b510de162d1a618aecca88
PR tree-optimization/96818 - cast label range to type of switch operand

PR tree-optimization/96818
* tree-vrp.c (find_case_label_range): Cast label range to
type of switch operand.
gcc/testsuite/g++.dg/pr96818.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr96818.c [new file with mode: 0644]
gcc/tree-vrp.c