forked from Imagelibrary/binutils-gdb
Have global_block inherit from block
This changes global_block to inherit from block, which is what was always intended.
This commit is contained in:
@@ -397,9 +397,7 @@ allocate_block (struct obstack *obstack)
|
||||
struct block *
|
||||
allocate_global_block (struct obstack *obstack)
|
||||
{
|
||||
struct global_block *bl = new (obstack) struct global_block;
|
||||
|
||||
return &bl->block;
|
||||
return new (obstack) struct global_block;
|
||||
}
|
||||
|
||||
/* See block.h. */
|
||||
|
||||
Reference in New Issue
Block a user