forked from Imagelibrary/binutils-gdb
Don't allow NULL as an argument to block_using
block_using has special behavior when the block is NULL. Remove this. No caller seems to be affected.
This commit is contained in:
@@ -337,7 +337,7 @@ block_set_scope (struct block *block, const char *scope,
|
||||
struct using_direct *
|
||||
block_using (const struct block *block)
|
||||
{
|
||||
if (block == NULL || block->namespace_info () == NULL)
|
||||
if (block->namespace_info () == NULL)
|
||||
return NULL;
|
||||
else
|
||||
return block->namespace_info ()->using_decl;
|
||||
|
||||
Reference in New Issue
Block a user