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:
parent
dc7bb9149e
commit
1a1b0d7551
3
t-dll.cc
3
t-dll.cc
|
|
@ -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_)
|
||||
|
|
|
|||
Loading…
Reference in New Issue