* varpool.c (varpool_get_node): Fix lookup.
From-SVN: r160024
This commit is contained in:
parent
1a86e236a3
commit
4cceafb849
|
@ -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>
|
2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
|
||||||
|
|
||||||
* config/spu/spu-protos.h: Do not include rtl.h. Protect
|
* config/spu/spu-protos.h: Do not include rtl.h. Protect
|
||||||
|
|
|
@ -117,7 +117,9 @@ varpool_get_node (tree decl)
|
||||||
return NULL;
|
return NULL;
|
||||||
key.decl = decl;
|
key.decl = decl;
|
||||||
slot = (struct varpool_node **)
|
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;
|
return *slot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue