Issue 235434
Summary llubi accepts a poison result from a nocreateundeforpoison function
Labels new issue
Assignees
Reporter Roticv912
    A parameterless nocreateundeforpoison function returns i32 poison and its caller continues without reporting undefined behavior.

### Program
```llvm
define i32 @f() nocreateundeforpoison { ret i32 poison }

define i32 @main() {
entry:
  %x = call i32 @f()
  ret i32 0
}
```

### Output
```
Entering function: main
Entering function: f
  ret i32 poison
Exiting function: f
  %x = call i32 @f() => poison
 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