From: Richard Henderson Date: Thu, 10 Jun 2021 16:32:40 +0000 (-0700) Subject: tcg: Fix documentation for tcg_constant_* vs tcg_temp_free_* X-Git-Tag: v6.1.0~126^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a14b3ad11af1803e018d2be8ca26be27f816872d;p=qemu-nvme.git tcg: Fix documentation for tcg_constant_* vs tcg_temp_free_* At some point during the development of tcg_constant_*, I changed my mind about whether such temps should be able to be passed to tcg_temp_free_*. The final version committed allows this, but the commentary was not updated to match. Fixes: c0522136adf Reported-by: Peter Maydell Reviewed-by: Alex Bennée Reviewed-by: Luis Pires Signed-off-by: Richard Henderson --- diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 1d056ed0ed..064dab383b 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -1095,7 +1095,8 @@ TCGv_vec tcg_const_ones_vec_matching(TCGv_vec); /* * Locate or create a read-only temporary that is a constant. - * This kind of temporary need not and should not be freed. + * This kind of temporary need not be freed, but for convenience + * will be silently ignored by tcg_temp_free_*. */ TCGTemp *tcg_constant_internal(TCGType type, int64_t val);