https://github.com/HerrCai0907 commented:

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:
  }
}
```

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