Delete gori_map during destruction of GORI.
commitf9810728cf42ea7c3d84198aa582e53cfb2302d1
authorAndrew MacLeod <amacleod@redhat.com>
Sat, 25 May 2024 16:28:52 +0000 (25 12:28 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Sun, 26 May 2024 01:30:18 +0000 (25 21:30 -0400)
tree6405496d1734491cb469ddc5e974f47ee356d60b
parent3c7ae57e8824cd4807a25ce76f11e745ba830dc2
Delete gori_map during destruction of GORI.

Forgot to free the gori_mpa object when a gori object is freed.

PR tree-optimization/115208
* value-query.cc (range_query::create_gori): Confirm gori_map is NULL.
(range_query::destroy_gori): Free gori_map if one was allocated.
gcc/value-query.cc