Fix UB in hash-map.h
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Mon, 27 Nov 2017 12:53:16 +0000 (12:53 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Mon, 27 Nov 2017 12:53:16 +0000 (12:53 +0000)
commit04f915037850166c05c73baf3d6e2ba10c790ea1
tree703d423fa1f611f0b40c39291c259f3f9c44229d
parentff27462edc398ca82e86c8c7f13d9fab498ba5c1
Fix UB in hash-map.h

bootstrap-ubsan shows:
  gcc/hash-map.h:277:19: runtime error: member access within null pointer of type 'struct hash_map'

Fix the issue by returning early.

From-SVN: r255166
gcc/ChangeLog
gcc/hash-map.h