Changeset f033d01


Ignore:
Timestamp:
Sep 25, 2023, 12:52:58 PM (7 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
85034ed
Parents:
c7616dd
Message:

Fix typo{

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ResolveTypeof.cc

    rc7616dd rf033d01  
    231231            const ast::Designation *des = mutListInit->designations[k].get();
    232232            // Desination here
    233             ast::Designation * newDesination = new ast::Designation(des->location);
     233            ast::Designation * newDesignation = new ast::Designation(des->location);
    234234            std::deque<ast::ptr<ast::Expr>> newDesignators;
    235235
     
    265265            }           
    266266           
    267             newDesination->designators = newDesignators;
    268             mutListInit = ast::mutate_field_index(mutListInit, &ast::ListInit::designations, k, newDesination);
     267            newDesignation->designators = newDesignators;
     268            mutListInit = ast::mutate_field_index(mutListInit, &ast::ListInit::designations, k, newDesignation);
    269269           
    270270        }
Note: See TracChangeset for help on using the changeset viewer.