* varpool.c (varpool_get_node): Fix lookup.

From-SVN: r160024
This commit is contained in:
Jan Hubicka 2010-05-29 15:04:50 +02:00 committed by Jan Hubicka
parent 1a86e236a3
commit 4cceafb849
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-05-29 Jan Hubicka <jh@suse.cz>
* varpool.c (varpool_get_node): Fix lookup.
2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
* config/spu/spu-protos.h: Do not include rtl.h. Protect

View File

@ -117,7 +117,9 @@ varpool_get_node (tree decl)
return NULL;
key.decl = decl;
slot = (struct varpool_node **)
htab_find_slot (varpool_hash, &key, INSERT);
htab_find_slot (varpool_hash, &key, NO_INSERT);
if (!slot)
return NULL;
return *slot;
}