]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Clone expr instead of taking it
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 12 Dec 2024 17:30:09 +0000 (18:30 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 24 Mar 2025 12:06:56 +0000 (13:06 +0100)
commit178e5f85b48918f49d194b1c48635b2130646578
treef0689dfc49e6001616608ac6c20be2824d55d47c
parent0529a772896c36fd72565710c587ce6103a05d2a
gccrs: Clone expr instead of taking it

We're reusing the value, it could therefore not be taken be should be
cloned.

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-enumitem.cc (TypeCheckEnumItem::visit):
Clone expr instead of taking it.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/typecheck/rust-hir-type-check-enumitem.cc