clangir icon indicating copy to clipboard operation
clangir copied to clipboard

Incorrect terminator generation

Open wenpen opened this issue 9 months ago • 3 comments

The following code would generate incorrect terminator, and result in module verification error.

  switch(a) {
  case 0:
    break; 
    int x = 1;
  }
  switch(a) {
  case 0:
    return 0;
    return 1;
    int x = 1;
  }
for (;;) {
  break;
  int x = 1;
}

wenpen avatar May 14 '24 03:05 wenpen