summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/constructor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/constructor.cc')
-rw-r--r--Build/source/utils/asymptote/constructor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/constructor.cc b/Build/source/utils/asymptote/constructor.cc
index 5915a614985..d22e9ee31d0 100644
--- a/Build/source/utils/asymptote/constructor.cc
+++ b/Build/source/utils/asymptote/constructor.cc
@@ -92,8 +92,11 @@ varEntry *constructorFromInitializer(position pos, coenv &e, record *r,
types::function *ft=new types::function(r, init->getSignature());
+ ostringstream out;
+ ft->printVar(out, symbol::trans("<constructor>"));
+
// Create a new function environment.
- coder fc = e.c.newFunction(ft);
+ coder fc = e.c.newFunction(out.str(), ft);
coenv fe(fc,e.e);
// Translate the function.