is_cell needs to be defined for root scopes.

This patch fixes a small bug found with the vlog95 back end. A root scope
should define is_cell instead of leaving it undefined. Normally I would
expect a root scope to not be a cell, but I don't think the standard
prohibits this from happening, so copy the value from the definition.
This commit is contained in:
Cary R 2011-01-13 19:17:40 -08:00 committed by Stephen Williams
parent dc7bb9149e
commit 1a1b0d7551
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000-2010 Stephen Williams (steve@icarus.com)
* Copyright (c) 2000-2011 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@ -564,6 +564,7 @@ void dll_target::add_root(ivl_design_s &des__, const NetScope *s)
root_->nattr = s->attr_cnt();
root_->attr = fill_in_attributes(s);
root_->is_auto = 0;
root_->is_cell = s->is_cell();
des__.nroots_++;
if (des__.roots_)