Skip to content

Commit 0f0def1

Browse files
Changqing-JINGCopilot
andcommitted
Fix review
Co-authored-by: Copilot <copilot@github.com>
1 parent 1842b29 commit 0f0def1

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/compiler.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7080,23 +7080,23 @@ 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])){
7086-
allTrivial = false;
7087-
break;
7088-
}
7083+
if (operands && allTrivial) {
7084+
for (let i = 0; i < numOperands; ++i) {
7085+
if (!module.isTrivialExpression(operands[i])) {
7086+
allTrivial = false;
7087+
break;
7088+
}
70897089
}
70907090
}
70917091

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

0 commit comments

Comments
 (0)