Skip to content

Commit 65b08ef

Browse files
rootjalexabadams
andauthored
[PTX] RewriteLoadsAs32Bit should use the mutated index (#8581)
RewriteLoadsAs32Bit should use the mutated index Co-authored-by: Andrew Adams <[email protected]>
1 parent 052e18e commit 65b08ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeGen_PTX_Dev.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class RewriteLoadsAs32Bit : public IRMutator {
433433
} else if (index.same_as(op->index)) {
434434
return op;
435435
} else {
436-
return Load::make(op->type, op->name, op->index, op->image, op->param, op->predicate, op->alignment);
436+
return Load::make(op->type, op->name, std::move(index), op->image, op->param, op->predicate, op->alignment);
437437
}
438438
}
439439
};

0 commit comments

Comments
 (0)