Skip to content

Commit

Permalink
actionSynthesis: add original source info to synthesized actions (#3396)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvido authored Jun 22, 2022
1 parent f26b26e commit 9b70567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion midend/actionSynthesis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const IR::Statement* DoSynthesizeActions::createAction(const IR::Statement* toAd

auto annos = new IR::Annotations();
annos->add(new IR::Annotation(IR::Annotation::hiddenAnnotation, {}));
auto action = new IR::P4Action(name, annos, new IR::ParameterList(), body);
auto action = new IR::P4Action(toAdd->srcInfo, name, annos, new IR::ParameterList(), body);
actions.push_back(action);
auto actpath = new IR::PathExpression(name);
auto repl = new IR::MethodCallExpression(toAdd->srcInfo, actpath);
Expand Down

0 comments on commit 9b70567

Please sign in to comment.