tcg: Return NULL temp for TCG_CALL_DUMMY_ARG

Backports commit c6c7d84df8889b9d6298466999b88a8a42e5f976 from qemu
This commit is contained in:
Richard Henderson 2018-03-05 07:22:36 -05:00 committed by Lioncash
parent 010ded3088
commit a659a03ff5
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -989,7 +989,7 @@ struct TCGContext {
static inline TCGTemp *arg_temp(TCGContext *tcg_ctx, TCGArg a) static inline TCGTemp *arg_temp(TCGContext *tcg_ctx, TCGArg a)
{ {
return &tcg_ctx->temps[a]; return a == TCG_CALL_DUMMY_ARG ? NULL : &tcg_ctx->temps[a];
} }
static inline void tcg_set_insn_param(TCGContext *tcg_ctx, int op_idx, int arg, TCGArg v) static inline void tcg_set_insn_param(TCGContext *tcg_ctx, int op_idx, int arg, TCGArg v)