vhdlpp: Fixed a crash in case of dynamic_cast failure.
This commit is contained in:
parent
bba312fee1
commit
d20549b27a
|
|
@ -258,6 +258,8 @@ int ProcessStatement::rewrite_as_always_edge_(Entity*, Architecture*)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
const ExpCharacter*op2b = dynamic_cast<const ExpCharacter*>(op2b_raw);
|
const ExpCharacter*op2b = dynamic_cast<const ExpCharacter*>(op2b_raw);
|
||||||
|
if (op2b == 0)
|
||||||
|
return -1;
|
||||||
if (op2b->value() != '1' && op2b->value() != '0')
|
if (op2b->value() != '1' && op2b->value() != '0')
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue