summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/passes/FuncCastEmulation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/FuncCastEmulation.cpp b/src/passes/FuncCastEmulation.cpp
index 972cf719c..49ef2fd7a 100644
--- a/src/passes/FuncCastEmulation.cpp
+++ b/src/passes/FuncCastEmulation.cpp
@@ -206,6 +206,7 @@ private:
Signature(Type(thunkParams), Type::i64),
{}, // no vars
toABI(call, module));
+ thunkFunc->hasExplicitName = true;
module->addFunction(std::move(thunkFunc));
return thunk;
}