gcc compile

This commit is contained in:
James Cherry 2019-08-12 21:36:32 -07:00
parent 109925644f
commit a20fb113b7
2 changed files with 4 additions and 2 deletions

View File

@ -665,18 +665,19 @@ Power::inferedWhen(FuncExpr *expr,
return negate(expr->right());
if (isPortRef(expr->right(), from_port))
return negate(expr->left());
break;
}
case FuncExpr::op_and: {
if (isPortRef(expr->left(), from_port))
return expr->right()->copy();
if (isPortRef(expr->right(), from_port))
return expr->left()->copy();
break;
}
case FuncExpr::op_one:
case FuncExpr::op_zero:
return nullptr;
break;
}
// gcc not too smaht
return nullptr;
}

View File

@ -18,6 +18,7 @@
#define STA_HASHSET_H
#include <stddef.h> // size_t
#include "Hash.hh"
namespace sta {