if (a == b)
return true;
/* If A is a function block, then A cannot be contained in B,
- except if A was inlined. */
+ except if A was inlined. */
if (!allow_nested && BLOCK_FUNCTION (a) != NULL && !block_inlined_p (a))
- return false;
+ return false;
a = BLOCK_SUPERBLOCK (a);
}
while (a != NULL);
struct blockranges *
make_blockranges (struct objfile *objfile,
- const std::vector<blockrange> &rangevec)
+ const std::vector<blockrange> &rangevec)
{
struct blockranges *blr;
size_t n = rangevec.size();
blr = (struct blockranges *)
obstack_alloc (&objfile->objfile_obstack,
- sizeof (struct blockranges)
+ sizeof (struct blockranges)
+ (n - 1) * sizeof (struct blockrange));
blr->nranges = n;