Ignore:
Timestamp:
Apr 13, 2023, 10:28:47 AM (14 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
1b8fc06c
Parents:
52f9804
Message:

Clean-up in the parser %union.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cc

    r52f9804 r32d6fdc  
    387387
    388388// Question
    389 ast::Stmt * build_asm( const CodeLocation & location, bool voltile, ast::Expr * instruction, ExpressionNode * output, ExpressionNode * input, ExpressionNode * clobber, LabelNode * gotolabels ) {
     389ast::Stmt * build_asm( const CodeLocation & location, bool is_volatile, ExpressionNode * instruction, ExpressionNode * output, ExpressionNode * input, ExpressionNode * clobber, LabelNode * gotolabels ) {
    390390        std::vector<ast::ptr<ast::Expr>> out, in;
    391391        std::vector<ast::ptr<ast::ConstantExpr>> clob;
     
    395395        buildMoveList( clobber, clob );
    396396        return new ast::AsmStmt( location,
    397                 voltile,
    398                 instruction,
     397                is_volatile,
     398                maybeMoveBuild( instruction ),
    399399                std::move( out ),
    400400                std::move( in ),
Note: See TracChangeset for help on using the changeset viewer.