File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments