Skip to content

Commit 9b70567

Browse files
authored
actionSynthesis: add original source info to synthesized actions (#3396)
1 parent f26b26e commit 9b70567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

midend/actionSynthesis.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const IR::Statement* DoSynthesizeActions::createAction(const IR::Statement* toAd
203203

204204
auto annos = new IR::Annotations();
205205
annos->add(new IR::Annotation(IR::Annotation::hiddenAnnotation, {}));
206-
auto action = new IR::P4Action(name, annos, new IR::ParameterList(), body);
206+
auto action = new IR::P4Action(toAdd->srcInfo, name, annos, new IR::ParameterList(), body);
207207
actions.push_back(action);
208208
auto actpath = new IR::PathExpression(name);
209209
auto repl = new IR::MethodCallExpression(toAdd->srcInfo, actpath);

0 commit comments

Comments
 (0)