Ignore:
Timestamp:
Mar 8, 2024, 12:25:49 AM (4 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
266732e
Parents:
06601401 (diff), 169496e1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    r06601401 r03606ce  
    2929#include "DeclarationNode.h"       // for DeclarationNode
    3030#include "InitializerNode.h"       // for InitializerNode
     31#include "TypeData.h"              // for addType, build_basic_type, build_c...
    3132#include "parserutility.h"         // for notZeroExpr
    3233
     
    316317                                v2 );
    317318                        ret = build_compoundLiteral( location,
    318                                 DeclarationNode::newBasicType(
    319                                         DeclarationNode::Int128
    320                                 )->addType(
    321                                         DeclarationNode::newSignedNess( DeclarationNode::Unsigned ) ),
     319                                DeclarationNode::newFromTypeData(
     320                                        addType(
     321                                                build_basic_type( DeclarationNode::Int128 ),
     322                                                build_signedness( DeclarationNode::Unsigned ) ) ),
    322323                                new InitializerNode(
    323                                         (InitializerNode *)(new InitializerNode( new ExpressionNode( v2 == 0 ? ret2 : ret ) ))->set_last( new InitializerNode( new ExpressionNode( v2 == 0 ? ret : ret2 ) ) ), true )
     324                                        (new InitializerNode( new ExpressionNode( v2 == 0 ? ret2 : ret ) ))->set_last( new InitializerNode( new ExpressionNode( v2 == 0 ? ret : ret2 ) ) ), true )
    324325                        );
    325326                } else {                                                                                // explicit length, (length_type)constant
Note: See TracChangeset for help on using the changeset viewer.