mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Internals: Type check vertices made in DfgPeephole
This commit is contained in:
@@ -233,6 +233,9 @@ class V3DfgPeephole final : public DfgVisitor {
|
||||
Vertex* make(FileLine* flp, const DfgDataType& dtype, Operands... operands) {
|
||||
// Find or create an equivalent vertex
|
||||
Vertex* const vtxp = m_cache.getOrCreate<Vertex, Operands...>(flp, dtype, operands...);
|
||||
// Sanity check
|
||||
UASSERT_OBJ(vtxp->dtype() == dtype, vtxp, "Vertex dtype mismatch");
|
||||
if (VL_UNLIKELY(v3Global.opt.debugCheck())) vtxp->typeCheck(m_dfg);
|
||||
// Add to work list
|
||||
addToWorkList(vtxp);
|
||||
// Return new node
|
||||
|
||||
Reference in New Issue
Block a user