File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6528,6 +6528,7 @@ export class Compiler extends DiagnosticEmitter {
6528
6528
// indirect call: index argument with signature (non-generic, can't be inlined)
6529
6529
case ElementKind . LOCAL : {
6530
6530
let local = < Local > target ;
6531
+ let nativeSizeType = this . options . nativeSizeType ;
6531
6532
signature = assert ( local . type . signatureReference ) ;
6532
6533
if ( local . type . is ( TypeFlags . CLOSURE ) ) {
6533
6534
// If we're calling a local we know to be a closure, then we must still be in the creator functions
@@ -6539,13 +6540,13 @@ export class Compiler extends DiagnosticEmitter {
6539
6540
module . load (
6540
6541
local . type . byteSize ,
6541
6542
local . type . is ( TypeFlags . SIGNED ) ,
6542
- module . local_get ( local . index , this . options . nativeSizeType ) ,
6543
+ module . local_get ( local . index , nativeSizeType ) ,
6543
6544
this . options . nativeSizeType ,
6544
6545
0
6545
6546
) ,
6546
6547
expression . arguments ,
6547
6548
expression ,
6548
- module . local_get ( local . index , this . options . nativeSizeType ) ,
6549
+ module . local_get ( local . index , nativeSizeType ) ,
6549
6550
contextualType == Type . void
6550
6551
)
6551
6552
] , signature . returnType . toNativeType ( ) ) ;
You can’t perform that action at this time.
0 commit comments