Issue 114132
Summary <badref> is being generated in `store target( )` markup for StructuredBuffer type
Labels bug, HLSL
Assignees
Reporter coopp
    I am seeing a <badref> being inserted into the generated DXIL IR in the main ( ) function.

Godbolt link: https://godbolt.org/z/r3MT7P8ee

The following output contains <badref> indicating that something is not happy.
```
define void @main() local_unnamed_addr #1 {
  %1 = call %dx.types.Handle @dx.op.createHandleFromBinding(i32 218, %dx.types.ResBind { i32 2, i32 2, i32 4, i8 0 }, i32 0, i1 false), !dbg !65
  %2 = call %dx.types.Handle @dx.op.annotateHandle(i32 217, %dx.types.Handle %1, %dx.types.ResourceProperties { i32 1036, i32 16 }), !dbg !65
  %3 = bitcast ptr @my_buffer to ptr, !dbg !65
  store target("dx.RawBuffer", %struct.mystruct = type { <4 x float> }, 0, 0) <badref>, ptr %3, align 4, !dbg !65
  ret void
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to