diff --git a/compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp index 92ce6d93aaee..6cb8a2a1ce42 100644 --- a/compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp +++ b/compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp @@ -440,7 +440,7 @@ struct AllocationScope { ResourceRange aliasRange = resourceRange; if (auto subviewOp = IREE::Stream::ResourceSubviewOp::findSubviewOp(alias)) { - aliasRange.resourceSize = subviewOp.getSubrangeResource(); + aliasRange.resource = subviewOp.getSubrangeResource(); aliasRange.resourceSize = subviewOp.getSubrangeResourceSize(); aliasRange.offset = subviewOp.getSubrangeOffset(); aliasRange.length = subviewOp.getSubrangeLength();