Skip to content

Commit

Permalink
ClonePathExpressions: set visitDagOnce to false
Browse files Browse the repository at this point in the history
  • Loading branch information
rhalstea authored and ChrisDodd committed Feb 15, 2017
1 parent 51d1a8f commit c586289
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontends/p4/cloner.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ namespace P4 {
// care of this.
class ClonePathExpressions : public Transform {
public:
ClonePathExpressions() { setName("ClonePathExpressions"); }
ClonePathExpressions()
{ visitDagOnce = false; setName("ClonePathExpressions"); }
const IR::Node* postorder(IR::PathExpression* path) override
{ return new IR::PathExpression(path->path->clone()); }

Expand Down

0 comments on commit c586289

Please sign in to comment.