drc_proto: return 'safe' null constraint if no matching rule found. To be fixed
This commit is contained in:
parent
54ca66be72
commit
9176062d0f
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue