No, my test case is wrong. I’ll fix.
On Mar 5, 2014, at 4:15 PM, David Blaikie <[email protected]> wrote:
>> +MyEnum trivial_dead_return_enum_2(int x) {
>> + switch (x) {
>> + case 1: return 1;
>> + case 2: return 2;
>> + case 3: return 3;
>> + }
>> +
>> + return 2; // no-warning
>
> Wow - was this return really considered 'dead' at some point? How/why?
> That looks totally reachable...
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits