Renaming breaks with switch case
laurentlb opened this issue · 0 comments
laurentlb commented
Input:
vec3 fRep()
{
switch (array)
{
case BLAH: foo;
case BLAH: foo;
case BLAH: { foo; break; }
case BLAH: foo;
case BLAH: foo;
}
}
with flag --no-inlining
, output:
vec3 B()
{
switch(array){
case BLAH:
foo;
case B:foo;
case BLAH:
{
foo;
break;
}
case H:foo;
case A:foo;
}
}
The BLAH
shouldn't be renamed.