More verbose eval_const assert message.

This commit is contained in:
steve 2002-10-13 05:01:07 +00:00
parent 54a8e12856
commit 1eb714e097
1 changed files with 10 additions and 1 deletions

11
eval.cc
View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: eval.cc,v 1.30 2002/08/12 01:34:59 steve Exp $"
#ident "$Id: eval.cc,v 1.31 2002/10/13 05:01:07 steve Exp $"
#endif
# include "config.h"
@ -143,6 +143,12 @@ verinum* PEIdent::eval_const(const Design*des, const NetScope*scope) const
return 0;
const NetEConst*eval = dynamic_cast<const NetEConst*>(expr);
if (eval == 0) {
cerr << get_line() << ": internal error: Unable to evaluate "
<< "constant expression: " << *expr << endl;
return 0;
}
assert(eval);
if (msb_ || lsb_)
@ -219,6 +225,9 @@ verinum* PEUnary::eval_const(const Design*des, const NetScope*scope) const
/*
* $Log: eval.cc,v $
* Revision 1.31 2002/10/13 05:01:07 steve
* More verbose eval_const assert message.
*
* Revision 1.30 2002/08/12 01:34:59 steve
* conditional ident string using autoconfig.
*