Changeset a172972 for src/ResolvExpr/Resolver.cc
- Timestamp:
- Feb 23, 2016, 11:20:39 AM (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r7528ba1 ra172972 324 324 BasicType::SignedInt); 325 325 } else { 326 DeclarationWithType * decl = lookupId( n);326 DeclarationWithType * decl = lookupId( n ); 327 327 initContext = decl->get_type(); 328 328 } … … 346 346 if ( PointerType * pt = dynamic_cast< PointerType *>( newExpr->get_results().front() ) ) { 347 347 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"; 350 349 CastExpr *ce = dynamic_cast< CastExpr * >( newExpr ); 351 350 singleInit->set_value( ce->get_arg() );
Note: See TracChangeset
for help on using the changeset viewer.