Skip to content

Commit 84784c6

Browse files
committed
fixup: Clean up leftover declarations
1 parent 3869dd3 commit 84784c6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,14 @@ class OpLowerer {
554554
});
555555
}
556556

557+
[[nodiscard]] bool lowerGetPointer(Function &F) {
558+
// These should have already been handled in DXILResourceAccess, so we can
559+
// just clean up the dead prototype.
560+
assert(F.user_empty() && "getpointer operations should have been removed");
561+
F.eraseFromParent();
562+
return false;
563+
}
564+
557565
[[nodiscard]] bool lowerTypedBufferStore(Function &F) {
558566
IRBuilder<> &IRB = OpBuilder.getIRB();
559567
Type *Int8Ty = IRB.getInt8Ty();
@@ -707,6 +715,9 @@ class OpLowerer {
707715
case Intrinsic::dx_handle_fromBinding:
708716
HasErrors |= lowerHandleFromBinding(F);
709717
break;
718+
case Intrinsic::dx_resource_getpointer:
719+
HasErrors |= lowerGetPointer(F);
720+
break;
710721
case Intrinsic::dx_typedBufferLoad:
711722
HasErrors |= lowerTypedBufferLoad(F, /*HasCheckBit=*/false);
712723
break;

0 commit comments

Comments
 (0)