Skip to content

Commit

Permalink
fix compilation error when GETWORD is replaced by MOV
Browse files Browse the repository at this point in the history
  • Loading branch information
totalspectrum committed Jun 12, 2024
1 parent f92886d commit ea30705
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backends/asm/optimize_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -3970,6 +3970,7 @@ OptimizePeepholes(IRList *irl)
changed = 1;
} else if (previr && previr->opc == OPC_GETWORD) {
ReplaceOpcode(previr,OPC_MOV);
previr->src2 = NULL;
changed = 1;
}
// Check src
Expand Down

0 comments on commit ea30705

Please sign in to comment.