Support restrict, bug1350.

This commit is contained in:
Wilson Snyder
2018-09-23 15:20:12 -04:00
parent 0e37747d2c
commit 9f8dbc91f2
7 changed files with 26 additions and 4 deletions
+4
View File
@@ -145,6 +145,10 @@ private:
// than the sim-killing else clause:
ifp->branchPred(AstBranchPred::BP_LIKELY);
bodysp = newIfAssertOn(ifp);
} else if (VN_IS(nodep, PslRestrict)) {
// IEEE says simulator ignores these
pushDeletep(nodep->unlinkFrBack()); VL_DANGLING(nodep);
return;
} else {
nodep->v3fatalSrc("Unknown node type");
}