summaryrefslogtreecommitdiff
path: root/src/passes/FuncCastEmulation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/FuncCastEmulation.cpp')
-rw-r--r--src/passes/FuncCastEmulation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/FuncCastEmulation.cpp b/src/passes/FuncCastEmulation.cpp
index a164b4264..ba6d1d583 100644
--- a/src/passes/FuncCastEmulation.cpp
+++ b/src/passes/FuncCastEmulation.cpp
@@ -209,12 +209,12 @@ private:
for (Index i = 0; i < NUM_PARAMS; i++) {
thunkParams.push_back(Type::i64);
}
- auto* thunkFunc =
+ auto thunkFunc =
builder.makeFunction(thunk,
Signature(Type(thunkParams), Type::i64),
{}, // no vars
toABI(call, module));
- module->addFunction(thunkFunc);
+ module->addFunction(std::move(thunkFunc));
return thunk;
}
};