Ignore:
Timestamp:
Mar 12, 2024, 6:08:52 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
6337916
Parents:
56a8eb8 (diff), a3525c4 (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/DeclarationNode.cc

    r56a8eb8 r30a1f0c  
    296296        newnode->type->array.dimension = size;
    297297        newnode->type->array.isStatic = isStatic;
    298         if ( newnode->type->array.dimension == nullptr || newnode->type->array.dimension->isExpressionType<ast::ConstantExpr *>() ) {
    299                 newnode->type->array.isVarLen = false;
    300         } else {
    301                 newnode->type->array.isVarLen = true;
    302         } // if
     298        newnode->type->array.isVarLen = size && !size->isExpressionType<ast::ConstantExpr *>();
    303299        return newnode->addQualifiers( qualifiers );
    304300} // DeclarationNode::newArray
Note: See TracChangeset for help on using the changeset viewer.