if-to-switch: fix a memory leak

gcc/ChangeLog:

	PR tree-optimization/99002
	* gimple-if-to-switch.cc (find_conditions): Fix memory leak
	in the function.
This commit is contained in:
Martin Liska 2021-02-09 09:50:04 +01:00
parent d44f56f2b2
commit 5da5d8a02c

View File

@ -447,10 +447,9 @@ find_conditions (basic_block bb,
info->record_phi_mapping (info->m_false_edge,
&info->m_false_edge_phi_mapping);
conditions_in_bbs->put (bb, info);
return;
}
return;
exit:
delete info;
}