Changes in src/ResolvExpr/Resolver.cc [52f85e0:d3b7937]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r52f85e0 rd3b7937 10 10 // Created On : Sun May 17 12:17:01 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 9 21:57:52 201613 // Update Count : 17 912 // Last Modified On : Fri Jul 24 17:33:54 2015 13 // Update Count : 178 14 14 // 15 15 … … 322 322 BasicType::SignedInt); 323 323 } else { 324 DeclarationWithType * decl = lookupId( n);324 DeclarationWithType * decl = lookupId(n); 325 325 initContext = decl->get_type(); 326 326 } … … 344 344 if ( PointerType * pt = dynamic_cast< PointerType *>( newExpr->get_results().front() ) ) { 345 345 if ( isCharType( pt->get_base() ) ) { 346 // strip cast if we're initializing a char[] with a char *, e.g. char x[] = "hello"; 346 // strip cast if we're initializing a char[] with a char *, e.g. 347 // char x[] = "hello"; 347 348 CastExpr *ce = dynamic_cast< CastExpr * >( newExpr ); 348 349 singleInit->set_value( ce->get_arg() );
Note:
See TracChangeset
for help on using the changeset viewer.