]> gcc.gnu.org Git - gcc.git/commit
Fix hash_map::traverse overload
authorMatthias Kretz <m.kretz@gsi.de>
Fri, 3 Dec 2021 08:37:52 +0000 (09:37 +0100)
committerMatthias Kretz <m.kretz@gsi.de>
Tue, 7 Dec 2021 12:11:47 +0000 (13:11 +0100)
commitc93e704b9e0411f1db031df9716b9958307590e3
treef0ca7198448457490849aedbdfc5513acc84ec20
parentba6bb287f03d42ab6c4f39ce99dcf94ec5113655
Fix hash_map::traverse overload

The hash_map::traverse overload taking a non-const Value pointer breaks
if the callback returns false. The other overload should behave the
same.

Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
gcc/ChangeLog:

* hash-map.h (hash_map::traverse): Let both overloads behave the
same.
* predict.c (assert_is_empty): Return true, thus not changing
behavior.
gcc/hash-map.h
gcc/predict.c
This page took 0.061772 seconds and 6 git commands to generate.