diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-06-10 09:32:40 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-06-13 17:42:40 -0700 |
commit | a14b3ad11af1803e018d2be8ca26be27f816872d (patch) | |
tree | a64d6c82d1e66f2df330b744e17ed6e0c09a50b9 /include | |
parent | a80cdd3183ed85bc254cbe22ca240dc035fc6548 (diff) | |
download | qemu-a14b3ad11af1803e018d2be8ca26be27f816872d.zip qemu-a14b3ad11af1803e018d2be8ca26be27f816872d.tar.gz qemu-a14b3ad11af1803e018d2be8ca26be27f816872d.tar.bz2 |
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 <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>
Diffstat (limited to 'include')
-rw-r--r-- | include/tcg/tcg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 1d056ed..064dab3 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); |