Ignore:
Timestamp:
Dec 1, 2016, 12:46:34 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
78b3f52
Parents:
148f7290
Message:

0 and 1 now properly parse and resolve to zero_t and one_t respectively

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parseutility.cc

    r148f7290 r4cb935e  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // parseutility.cc -- 
     7// parseutility.cc --
    88//
    99// Author           : Rodolfo G. Esteves
     
    1212// Last Modified On : Sun Aug 14 23:45:03 2016
    1313// Update Count     : 3
    14 // 
     14//
    1515
    1616#include "parseutility.h"
     
    2626        UntypedExpr *comparison = new UntypedExpr( new NameExpr( "?!=?" ) );
    2727        comparison->get_args().push_back( orig );
    28         comparison->get_args().push_back( new NameExpr( "0" ) );
     28        comparison->get_args().push_back( new ConstantExpr( Constant( new ZeroType( emptyQualifiers ), "0" ) ) );
    2929        return new CastExpr( comparison, new BasicType( Type::Qualifiers(), BasicType::SignedInt ) );
    3030}
Note: See TracChangeset for help on using the changeset viewer.