From a20fb113b7e9fdb969342f2b6c6a8c96df76ca0e Mon Sep 17 00:00:00 2001 From: James Cherry Date: Mon, 12 Aug 2019 21:36:32 -0700 Subject: [PATCH] gcc compile --- search/Power.cc | 5 +++-- util/HashSet.hh | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/search/Power.cc b/search/Power.cc index 814f29bf..74d63a7a 100644 --- a/search/Power.cc +++ b/search/Power.cc @@ -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; } diff --git a/util/HashSet.hh b/util/HashSet.hh index 3b7ddeb2..e4297072 100644 --- a/util/HashSet.hh +++ b/util/HashSet.hh @@ -18,6 +18,7 @@ #define STA_HASHSET_H #include // size_t +#include "Hash.hh" namespace sta {