Skip to content

Commit

Permalink
Merge pull request #130 from visitorckw/fix-build-failure-riscv
Browse files Browse the repository at this point in the history
Fix compilation errors when ARCH=riscv
  • Loading branch information
jserv authored May 7, 2024
2 parents d4dcc6e + 8982f0a commit 1b34919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
sudo apt-get install -q -y build-essential
make clean config
make check-snapshots || exit 1
make clean config ARCH=arm
make distclean config ARCH=arm
make check || exit 1
make clean config ARCH=riscv
make distclean config ARCH=riscv
make check || exit 1
host-arm:
Expand Down
2 changes: 1 addition & 1 deletion src/riscv-codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void cfg_flatten()

for (fn_t *fn = FUNC_LIST.head; fn; fn = fn->next) {
/* reserve stack */
ph2_ir_t *fflatten_ir = add_ph2_ir(OP_define);
ph2_ir_t *flatten_ir = add_ph2_ir(OP_define);
flatten_ir->src0 = fn->func->stack_size;

for (basic_block_t *bb = fn->bbs; bb; bb = bb->rpo_next) {
Expand Down

0 comments on commit 1b34919

Please sign in to comment.