public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] var_expression: document that the memory of the val argument isn't freed
@ 2022-12-09 11:40 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-12-09 11:40 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d77d5be0695a247928998f8d2511e4e06e67c4fe

commit d77d5be0695a247928998f8d2511e4e06e67c4fe
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Thu Nov 17 11:52:22 2022 +0100

    var_expression: document that the memory of the val argument isn't freed

Diff:
---
 gcc/rust/rust-gcc.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index 7fd9b65fd6a..f674fc8efb2 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -1021,6 +1021,7 @@ Gcc_backend::var_expression (Bvariable *var, Location location)
 }
 
 // Return a typed value as a constant integer.
+// This function does not release the memory of @val
 
 tree
 Gcc_backend::integer_constant_expression (tree t, mpz_t val)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-09 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09 11:40 [gcc/devel/rust/master] var_expression: document that the memory of the val argument isn't freed Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).