aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2022-12-29 14:32:57 -0300
committerAlexandre Oliva <oliva@gnu.org>2022-12-29 14:39:47 -0300
commit06be65894f7f18058496aa0e55bb7ec5613cb2a3 (patch)
treefe8d95226e8c0217995e6dd9d13bc99a70daa1e9
parent184278b93fc028c82b2efff74e54a941915556da (diff)
downloadgcc-06be65894f7f18058496aa0e55bb7ec5613cb2a3.zip
gcc-06be65894f7f18058496aa0e55bb7ec5613cb2a3.tar.gz
gcc-06be65894f7f18058496aa0e55bb7ec5613cb2a3.tar.bz2
tm: complete tm_restart insertion
Insertion of a tm_restart_node in tm_restart failed to record the newly-allocated node in the hash table. for gcc/ChangeLog * trans-mem.cc (split_bb_make_tm_edge): Record new node in tm_restart.
-rw-r--r--gcc/trans-mem.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/trans-mem.cc b/gcc/trans-mem.cc
index 131dce0..cbd1b89 100644
--- a/gcc/trans-mem.cc
+++ b/gcc/trans-mem.cc
@@ -3215,7 +3215,7 @@ split_bb_make_tm_edge (gimple *stmt, basic_block dest_bb,
struct tm_restart_node *n = *slot;
if (n == NULL)
{
- n = ggc_alloc<tm_restart_node> ();
+ *slot = n = ggc_alloc<tm_restart_node> ();
*n = dummy;
}
else