From e002b0e25fcbfb4d7ed7f5406625ae27cc788556 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 27 Nov 2014 12:04:16 -0500 Subject: [PATCH] Fix new inlining to be less aggressive --- src/V3AstNodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3AstNodes.h b/src/V3AstNodes.h index f41676977..9de2aa0d7 100644 --- a/src/V3AstNodes.h +++ b/src/V3AstNodes.h @@ -4750,7 +4750,7 @@ public: string rtnTypeVoid() const { return ((m_rtnType=="") ? "void" : m_rtnType); } bool dontCombine() const { return m_dontCombine || funcType()!=AstCFuncType::FT_NORMAL; } void dontCombine(bool flag) { m_dontCombine = flag; } - bool dontInline() const { return !dontCombine() && !slow() && !skipDecl() && !funcPublic(); } + bool dontInline() const { return dontCombine() || slow() || skipDecl() || funcPublic(); } bool skipDecl() const { return m_skipDecl; } void skipDecl(bool flag) { m_skipDecl = flag; } bool declPrivate() const { return m_declPrivate; }