mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
Don't allow NULL as an argument to block_static_block
block_static_block has special behavior when the block is NULL. Remove this and patch up the callers instead.
This commit is contained in:
@@ -13795,7 +13795,11 @@ public:
|
||||
{
|
||||
struct block_symbol sym;
|
||||
|
||||
sym = ada_lookup_symbol (name, block_static_block (block), domain);
|
||||
sym = ada_lookup_symbol (name,
|
||||
(block == nullptr
|
||||
? nullptr
|
||||
: block_static_block (block)),
|
||||
domain);
|
||||
if (sym.symbol != NULL)
|
||||
return sym;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user