Issue 235431
Summary llubi accepts a noreturn function returning normally
Labels new issue
Assignees
Reporter Roticv912
    A noreturn function executes ret void and execution continues in its caller without reporting undefined behavior.

### Program
```llvm
define void @f() noreturn { ret void }

define i32 @main() {
entry:
  call void @f()
  ret i32 0
}
```

### Output
```
Entering function: main
Entering function: f
 ret void
Exiting function: f
  call void @f()
  ret i32 0
Exiting function: main
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to