drc_proto: return 'safe' null constraint if no matching rule found. To be fixed

This commit is contained in:
Tomasz Wlostowski 2020-09-05 01:11:06 +02:00
parent 54ca66be72
commit 9176062d0f
1 changed files with 7 additions and 1 deletions

View File

@ -586,7 +586,13 @@ const test::DRC_CONSTRAINT& test::DRC_ENGINE::EvalRulesForItems( test::DRC_CONST
}
}
assert(false); // should never hapen
// fixme: return optional<drc_constraint>, let the particular test decide what to do if no matching constraint
// is found
static test::DRC_CONSTRAINT nullConstraint;
nullConstraint.m_DisallowFlags = 0;
nullConstraint.m_LayerCondition.reset();
return nullConstraint;
}