diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-01-21 20:34:41 -0800 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-04-28 13:40:15 -0700 |
| commit | cf5c9f697f2025880e8555467ddb6debc6349cd8 (patch) | |
| tree | 75ff8b76ab233fec20dce7c17912331ddd8fe52b /tcg/tcg-internal.h | |
| parent | a3c1c579baf511a2b95f7b233187a981b6ef46ea (diff) | |
| download | focaccia-qemu-cf5c9f697f2025880e8555467ddb6debc6349cd8.tar.gz focaccia-qemu-cf5c9f697f2025880e8555467ddb6debc6349cd8.zip | |
tcg: Add TCGType to tcg_op_insert_{after,before}
We cannot rely on the value copied from TCGOP_TYPE(op), because
the relevant op could be typeless, such as INDEX_op_call.
Fixes: fb744ece3a78 ("tcg: Copy TCGOP_TYPE in tcg_op_insert_{after,before}")
Suggested-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg-internal.h')
| -rw-r--r-- | tcg/tcg-internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/tcg-internal.h b/tcg/tcg-internal.h index ff85fb23fa..d6a12afe06 100644 --- a/tcg/tcg-internal.h +++ b/tcg/tcg-internal.h @@ -107,8 +107,8 @@ void vec_gen_6(TCGOpcode opc, TCGType type, unsigned vece, TCGArg r, TCGArg a, TCGArg b, TCGArg c, TCGArg d, TCGArg e); TCGOp *tcg_op_insert_before(TCGContext *s, TCGOp *op, - TCGOpcode opc, unsigned nargs); + TCGOpcode, TCGType, unsigned nargs); TCGOp *tcg_op_insert_after(TCGContext *s, TCGOp *op, - TCGOpcode opc, unsigned nargs); + TCGOpcode, TCGType, unsigned nargs); #endif /* TCG_INTERNAL_H */ |