Changeset ba2a68b


Ignore:
Timestamp:
Sep 1, 2017, 9:53:13 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
dbc733e
Parents:
bc3127d
Message:

update UntypedExpr? calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    rbc3127d rba2a68b  
    1010// Created On       : Sat May 16 13:17:07 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Sep  1 15:07:09 2017
    13 // Update Count     : 618
     12// Last Modified On : Fri Sep  1 21:49:16 2017
     13// Update Count     : 622
    1414//
    1515
     
    6666} // sepNumeric
    6767
    68 Expression * build_constantInteger( std::string & str ) {
     68Expression * build_constantInteger( string & str ) {
    6969        static const BasicType::Kind kind[2][3] = {
    7070                { BasicType::SignedInt, BasicType::LongSignedInt, BasicType::LongLongSignedInt },
     
    148148  CLEANUP:
    149149        if ( units.length() != 0 ) {
    150                 ret = new UntypedExpr( new NameExpr( units, ret ) );
     150                ret = new UntypedExpr( new NameExpr( units ), { ret } );
    151151        } // if
    152152
     
    190190        Expression * ret = new ConstantExpr( Constant( new BasicType( noQualifiers, kind[complx][size] ), str, v ) );
    191191        if ( units.length() != 0 ) {
    192                 ret = new UntypedExpr( new NameExpr( units, ret ) );
     192                ret = new UntypedExpr( new NameExpr( units ), { ret } );
    193193        } // if
    194194
     
    211211        Expression * ret = new ConstantExpr( Constant( new BasicType( noQualifiers, BasicType::Char ), str, (unsigned long long int)(unsigned char)str[1] ) );
    212212        if ( units.length() != 0 ) {
    213                 ret = new UntypedExpr( new NameExpr( units, ret ) );
     213                ret = new UntypedExpr( new NameExpr( units ), { ret } );
    214214        } // if
    215215
     
    228228// ROB: type mismatch
    229229        // if ( units.length() != 0 ) {
    230         //      ret = new UntypedExpr( new NameExpr( units, ret ) );
     230        //      ret = new UntypedExpr( new NameExpr( units ), { ret } );
    231231        // } // if
    232232               
Note: See TracChangeset for help on using the changeset viewer.