Skip to content

Commit

Permalink
rewriter: error on arm if we try to use a post condition function, wh…
Browse files Browse the repository at this point in the history
…ich isn't supported yet

This is a fatal error (ICE) since the caller can just set `--no-enable-dav1d_get_picture-post-condition`.
  • Loading branch information
kkysen committed Dec 18, 2024
1 parent a61c7e2 commit 693603f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/rewriter/GenCallAsm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,10 @@ static void emit_prologue(AsmWriter &aw, uint32_t caller_pkey, uint32_t target_p
// TODO(performance): We could store by pairs (STP)
add_asm_line(aw, "str "s + aarch64_preserved_registers[i] + ", [sp, #" + std::to_string(i * 8) + "]");
}

if (save_param_regs) {
llvm::report_fatal_error("--enable-dav1d_get_picture-post-condition is not yet supported on aarch64");
}
}
}

Expand Down

0 comments on commit 693603f

Please sign in to comment.