Skip to content

Commit bcd15d6

Browse files
spectrometerHBHSiyuan Feng
authored andcommitted
[TIR][Schedule] fix replace (apache#323)
1 parent 6f41f6f commit bcd15d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tir/schedule/schedule_replace.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ class ChildReplacer : private StmtMutator {
414414
// Case 2. stmt is BlockRealize, src_stmt is Block
415415
if (realize->block.get() == src_stmt_) {
416416
ObjectPtr<BlockRealizeNode> new_realize = make_object<BlockRealizeNode>(*realize);
417-
new_realize->block = GetRef<Block>(static_cast<const BlockNode*>(src_stmt_));
417+
new_realize->block = GetRef<Block>(static_cast<const BlockNode*>(tgt_stmt_.get()));
418418
new_stmt = BlockRealize(std::move(new_realize));
419419
}
420420
}

0 commit comments

Comments
 (0)