File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7080,9 +7080,9 @@ export class Compiler extends DiagnosticEmitter {
70807080 }
70817081
70827082 let allTrivial = ( getSideEffects ( functionArg , module . ref ) & SideEffects . WritesGlobal ) == 0 ;
7083- if ( operands && allTrivial ) {
7084- for ( let i = 0 ; i < numOperands ; ++ i ) {
7085- if ( ! module . isTrivialExpression ( operands [ i ] ) ) {
7083+ if ( operands && allTrivial ) {
7084+ for ( let i = 0 ; i < numOperands ; ++ i ) {
7085+ if ( ! module . isTrivialExpression ( operands [ i ] ) ) {
70867086 allTrivial = false ;
70877087 break ;
70887088 }
@@ -7092,11 +7092,11 @@ export class Compiler extends DiagnosticEmitter {
70927092 let stmts = new Array < ExpressionRef > ( ) ;
70937093 let sizeTypeRef = this . options . sizeTypeRef ;
70947094
7095- if ( ! allTrivial ) {
7095+ if ( ! allTrivial ) {
70967096 let functionArgLocal = this . currentFlow . getTempLocal ( this . options . usizeType ) ;
70977097 let functionArgSetExpr = module . local_set ( functionArgLocal . index , functionArg , true ) ;
70987098 stmts . push ( functionArgSetExpr ) ;
7099- functionArg = module . local_get ( functionArgLocal . index , sizeTypeRef ) ;
7099+ functionArg = module . local_get ( functionArgLocal . index , sizeTypeRef ) ;
71007100 }
71017101
71027102 // We might be calling a varargs stub here, even if all operands have been
You can’t perform that action at this time.
0 commit comments