berkaysahiin wrote:

> In this case, fix it may not work anymore.
> 
> The first version is valid code but the second not.
> 
> ```c++
> void f(int v) {
>   switch (v) {
>   case 1:
>     if (1)
>       return;
>     else
>       int a = 20;
>     break;
>   case 2:
>   }
> }
> ```
> 
> ```c++
> void f(int v) {
>   switch (v) {
>   case 1:
>     if (1)
>       return;
>     int a = 20;
>     break;
>   case 2:
>   }
> }
> ```

Fix it seems to be not applied in this case same as the compound stmt version 
with brackets.

https://github.com/llvm/llvm-project/pull/181878
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to