Skip to content

Commit 0f767d3

Browse files
committed
Use const Stmt & inside EarlyFree.cpp
1 parent 6a119f6 commit 0f767d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EarlyFree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class FindLastUse : public IRVisitor {
112112
Stmt inject_marker(const Stmt &stmt, const string &func, const Stmt &last_use) {
113113
bool injected = false;
114114
return mutate_with(stmt, [&](auto *self, const Block *block) -> Stmt {
115-
auto do_injection = [&](Stmt s) {
115+
auto do_injection = [&](const Stmt &s) {
116116
if (injected) {
117117
return s;
118118
}

0 commit comments

Comments
 (0)