Fix queues type matching

This commit is contained in:
Todd Strader 2020-04-01 15:48:28 -04:00
parent 6c6f7f8ae9
commit 14285f24cd

View File

@ -935,7 +935,7 @@ public:
virtual int widthTotalBytes() const { return subDTypep()->widthTotalBytes(); }
virtual bool match(const AstNodeDType* typep) const {
const AstQueueDType* queuep = VN_CAST_CONST(typep, QueueDType);
return queuep && subDTypep()->matching(typep);
return queuep && subDTypep()->matching(queuep->subDTypep());
}
};