Skip to content

Commit

Permalink
Don't apply defaultArguments in table action lists
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDodd committed Feb 19, 2024
1 parent a34e426 commit 4a84ead
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontends/p4/defaultArguments.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class DoDefaultArguments : public Transform {
const IR::Node *postorder(IR::MethodCallExpression *expression) override;
const IR::Node *postorder(IR::Declaration_Instance *inst) override;
const IR::Node *postorder(IR::ConstructorCallExpression *ccc) override;
const IR::Node *preorder(IR::ActionList *al) override {
// don't modify the action lists in tables
prune();
return al; }
};

class DefaultArguments : public PassManager {
Expand Down

0 comments on commit 4a84ead

Please sign in to comment.