aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-11-02 09:52:01 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2022-11-14 10:14:25 +0100
commit28ae1589e13a5917db55eff8de7355a6f54641f8 (patch)
treef515ab405f1ecdc9926e7bc1cc868278b2f1c67c /gcc
parent9606dc92b996d3c56c84d93d8ea9ec3e5bc7893d (diff)
downloadgcc-28ae1589e13a5917db55eff8de7355a6f54641f8.zip
gcc-28ae1589e13a5917db55eff8de7355a6f54641f8.tar.gz
gcc-28ae1589e13a5917db55eff8de7355a6f54641f8.tar.bz2
typecheck: Fix overzealous `delete` call
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/typecheck/rust-tyty-call.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-tyty-call.cc b/gcc/rust/typecheck/rust-tyty-call.cc
index 18a34be..6334b69 100644
--- a/gcc/rust/typecheck/rust-tyty-call.cc
+++ b/gcc/rust/typecheck/rust-tyty-call.cc
@@ -68,7 +68,6 @@ TypeCheckCallExpr::visit (ADTType &type)
return;
}
- delete res;
i++;
}