From 6c48f3b365e14a55b6fa5d20f89831cbc4f292bd Mon Sep 17 00:00:00 2001 From: dcode Date: Tue, 29 Jun 2021 03:55:36 +0200 Subject: [PATCH] Allow inlining the original function into its varargs stub --- src/compiler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler.ts b/src/compiler.ts index 0123c30bea..fc62b0ec06 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -6872,7 +6872,8 @@ export class Compiler extends DiagnosticEmitter { table ); stmts.push( - module.call(original.internalName, forwardedOperands, returnType.toRef()) + // assume this will always succeed (can just use name as the reportNode) + this.makeCallDirect(original, forwardedOperands, original.declaration.name) ); flow.freeScopedLocals(); this.currentFlow = previousFlow;