Ignore:
Timestamp:
Feb 23, 2016, 11:20:39 AM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
ae42f2a
Parents:
7528ba1 (diff), 6ce67ce (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' into ctor

Conflicts:

src/ResolvExpr/Resolver.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r7528ba1 ra172972  
    324324                                                                                                BasicType::SignedInt);
    325325                                } else {
    326                                         DeclarationWithType * decl = lookupId(n);
     326                                        DeclarationWithType * decl = lookupId( n );
    327327                                        initContext = decl->get_type();
    328328                                }
     
    346346                                        if ( PointerType * pt = dynamic_cast< PointerType *>( newExpr->get_results().front() ) ) {
    347347                                                if ( isCharType( pt->get_base() ) ) {
    348                                                         // strip cast if we're initializing a char[] with a char *, e.g.
    349                                                         // char x[] = "hello";
     348                                                        // strip cast if we're initializing a char[] with a char *, e.g.  char x[] = "hello";
    350349                                                        CastExpr *ce = dynamic_cast< CastExpr * >( newExpr );
    351350                                                        singleInit->set_value( ce->get_arg() );
Note: See TracChangeset for help on using the changeset viewer.