summaryrefslogtreecommitdiff
path: root/src/passes/LegalizeJSInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/LegalizeJSInterface.cpp')
-rw-r--r--src/passes/LegalizeJSInterface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/LegalizeJSInterface.cpp b/src/passes/LegalizeJSInterface.cpp
index 24d76ab09..a0b526a81 100644
--- a/src/passes/LegalizeJSInterface.cpp
+++ b/src/passes/LegalizeJSInterface.cpp
@@ -229,6 +229,7 @@ private:
Builder builder(*module);
auto* legal = new Function();
legal->name = legalName;
+ legal->hasExplicitName = true;
auto* call = module->allocator.alloc<Call>();
call->target = func->name;