Skip to content

Commit 958f7ec

Browse files
committed
fixup: Clean up leftover declarations
1 parent 9769f77 commit 958f7ec

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
@@ -553,6 +553,14 @@ class OpLowerer {
553553
});
554554
}
555555

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

0 commit comments

Comments
 (0)