vhdlpp: Elaborate if statement condition as bool.
This commit is contained in:
parent
b6f1cb221e
commit
f52de62729
|
|
@ -99,7 +99,7 @@ int IfSequential::elaborate(Entity*ent, ScopeBase*scope)
|
||||||
{
|
{
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
|
|
||||||
errors += cond_->elaborate_expr(ent, scope, 0);
|
errors += cond_->elaborate_expr(ent, scope, &type_BOOLEAN);
|
||||||
|
|
||||||
for (list<SequentialStmt*>::iterator cur = if_.begin()
|
for (list<SequentialStmt*>::iterator cur = if_.begin()
|
||||||
; cur != if_.end() ; ++cur) {
|
; cur != if_.end() ; ++cur) {
|
||||||
|
|
@ -123,7 +123,7 @@ int IfSequential::Elsif::elaborate(Entity*ent, ScopeBase*scope)
|
||||||
{
|
{
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
|
|
||||||
errors += cond_->elaborate_expr(ent, scope, 0);
|
errors += cond_->elaborate_expr(ent, scope, &type_BOOLEAN);
|
||||||
|
|
||||||
for (list<SequentialStmt*>::iterator cur = if_.begin()
|
for (list<SequentialStmt*>::iterator cur = if_.begin()
|
||||||
; cur != if_.end() ; ++cur) {
|
; cur != if_.end() ; ++cur) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue