From 9d1f74686227019fe7fbfa36ff570a56c673ac96 Mon Sep 17 00:00:00 2001 From: Glen Gibb Date: Fri, 11 Oct 2024 17:46:59 -0500 Subject: [PATCH] set PathExpression type in ExpandLookahead (#4959) Don't leave the PathExpression as Type_Unknown when expanding a lookahead. Signed-off-by: Glen Gibb --- midend/expandLookahead.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midend/expandLookahead.cpp b/midend/expandLookahead.cpp index 0b1ffcf6ae..b6f674e6ac 100644 --- a/midend/expandLookahead.cpp +++ b/midend/expandLookahead.cpp @@ -94,7 +94,7 @@ DoExpandLookahead::ExpansionInfo *DoExpandLookahead::convertLookahead( ta->push_back(bittype); auto mc = new IR::MethodCallExpression(expression->srcInfo, expression->method->clone(), ta, expression->arguments); - auto pathe = new IR::PathExpression(name); + auto pathe = new IR::PathExpression(bittype, name); auto lookupCall = new IR::AssignmentStatement(expression->srcInfo, pathe, mc); auto result = new ExpansionInfo; result->statement = lookupCall;