Skip to content

Commit 9d1f746

Browse files
authored
set PathExpression type in ExpandLookahead (#4959)
Don't leave the PathExpression as Type_Unknown when expanding a lookahead. Signed-off-by: Glen Gibb <glen.gibb@intel.com>
1 parent 1e9e0fb commit 9d1f746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

midend/expandLookahead.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ DoExpandLookahead::ExpansionInfo *DoExpandLookahead::convertLookahead(
9494
ta->push_back(bittype);
9595
auto mc = new IR::MethodCallExpression(expression->srcInfo, expression->method->clone(), ta,
9696
expression->arguments);
97-
auto pathe = new IR::PathExpression(name);
97+
auto pathe = new IR::PathExpression(bittype, name);
9898
auto lookupCall = new IR::AssignmentStatement(expression->srcInfo, pathe, mc);
9999
auto result = new ExpansionInfo;
100100
result->statement = lookupCall;

0 commit comments

Comments
 (0)