Skip to content

Commit 1cacc35

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

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/compiler.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)