mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix invalid C++ on cast (#8113)
Signed-off-by: Pawel Klopotek <[email protected]>
This commit is contained in:
@@ -534,6 +534,11 @@ class TaskVisitor final : public VNVisitor {
|
||||
}
|
||||
postRhsp->dtypeFrom(outPinp);
|
||||
}
|
||||
if (VN_IS(outPinp, IToRD) || VN_IS(outPinp, ISToRD)) {
|
||||
outPinp = VN_AS(outPinp, NodeUniop)->lhsp();
|
||||
postRhsp = new AstRToIRoundS{pinp->fileline(), postRhsp};
|
||||
postRhsp->dtypeFrom(outPinp);
|
||||
}
|
||||
// Put output assignment AFTER function call
|
||||
AstNodeExpr* const outPinClonep
|
||||
= pureCheck ? outPinp->cloneTreePure(true) : outPinp->cloneTree(true);
|
||||
|
||||
Reference in New Issue
Block a user