Skip to content

Commit 2b42c6c

Browse files
authored
[DirectX] Use a well-formed cbuffer in the unused cbuffer test (llvm#164844)
CBuffers still need a layout type for now. Fix the crash when looking up the cbuffer info.
1 parent 1c53bfc commit 2b42c6c

File tree

1 file changed

+1
-1
lines changed
  • llvm/test/CodeGen/DirectX/CBufferAccess

1 file changed

+1
-1
lines changed

llvm/test/CodeGen/DirectX/CBufferAccess/unused.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; Check that we correctly ignore cbuffers that were nulled out by optimizations.
33

44
%__cblayout_CB = type <{ float }>
5-
@CB.cb = local_unnamed_addr global target("dx.CBuffer", %__cblayout_CB) poison
5+
@CB.cb = local_unnamed_addr global target("dx.CBuffer", target("dx.Layout", %__cblayout_CB, 4, 0)) poison
66
@x = external local_unnamed_addr addrspace(2) global float, align 4
77

88
; CHECK-NOT: !hlsl.cbs =

0 commit comments

Comments
 (0)