diff mbox series

[PULL,31/34] tcg: Fix documentation for tcg_constant_* vs tcg_temp_free_*

Message ID 20210611234144.653682-32-richard.henderson@linaro.org (mailing list archive)
State New, archived
Headers show
Series [PULL,01/34] meson: Split out tcg/meson.build | expand

Commit Message

Richard Henderson June 11, 2021, 11:41 p.m. UTC
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 <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
 include/tcg/tcg.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series


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);