| Issue |
235733
|
| Summary |
llubi accepts access to an address space excluded by noalias.addrspace metadata
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Roticv912
|
A store accesses an allocation in address space 0 while carrying !noalias.addrspace metadata excluding address space 0 without reporting undefined behavior.
### Program
```llvm
!0 = !{i32 0, i32 1}
define i32 @main() {
entry:
%p = alloca i8
store i8 0, ptr %p, !noalias.addrspace !0
ret i32 0
}
```
### Output
```
Entering function: main
%p = alloca i8, align 1 => ptr 0x8 [p]
store i8 0, ptr %p, align 1, !noalias.addrspace !0
ret i32 0
Exiting function: main
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs