diff options
author | Richard Henderson <rth@twiddle.net> | 2017-06-20 11:34:55 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2017-10-24 21:44:02 +0200 |
commit | c6c7d84df8889b9d6298466999b88a8a42e5f976 (patch) | |
tree | 4792ca320c6a9b553d2d6a0a96a184e574b60b87 /tcg | |
parent | fa477d25470187030614288d35bc734edffa41ee (diff) |
tcg: Return NULL temp for TCG_CALL_DUMMY_ARG
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -731,7 +731,7 @@ extern bool parallel_cpus; static inline TCGTemp *arg_temp(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(int op_idx, int arg, TCGArg v) |