mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internal code coverage fixes
This commit is contained in:
+2
-1
@@ -192,7 +192,8 @@ private:
|
||||
virtual void visit(AstVarRef* nodep) VL_OVERRIDE {
|
||||
if (!VarFlags(nodep->varp()).m_notOpt) {
|
||||
if (!m_cfuncp) { // Not in function, can't optimize
|
||||
clearOptimizable(nodep->varp(), "BVnofunc");
|
||||
// Perhaps impossible, but better safe
|
||||
clearOptimizable(nodep->varp(), "BVnofunc"); // LCOV_EXCL_LINE
|
||||
} else {
|
||||
// If we're scoping down to it, it isn't really in the same block
|
||||
if (!nodep->hierThis()) clearOptimizable(nodep->varp(), "HierRef");
|
||||
|
||||
Reference in New Issue
Block a user