Ignore:
Timestamp:
Feb 1, 2024, 5:05:54 PM (5 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
9ddcee1
Parents:
32490deb
Message:

Fix dangling reference to posE function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/ReplacePseudoFunc.cpp

    r32490deb r496ffc17  
    128128            location, ast::ConstantExpr::from_string(location, mem->name)));
    129129    }
    130     // Values only
    131130    if (queryValues.count(enumDecl->name)) {
    132131        auto init = new ast::ListInit(location, std::move(inits));
     
    166165    auto untyped = new ast::UntypedExpr(
    167166        location, new ast::NameExpr(location, "?[?]"),
    168         {new ast::VariableExpr(*arrAsVar), new ast::VariableExpr(*arg)});
     167        { std::move(arrAsVar), std::move(arg) });
    169168    auto typedResult = ResolvExpr::findVoidExpression(untyped, context);
    170169
Note: See TracChangeset for help on using the changeset viewer.