Changes in / [0b996a1:8ca26d5]
- Location:
- src
- Files:
-
- 2 edited
-
InitTweak/GenInit.cc (modified) (1 diff)
-
main.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/GenInit.cc
r0b996a1 r8ca26d5 202 202 } 203 203 // don't need to hoist dimension if it's definitely pure - only need to if there's potential for side effects. 204 // xxx - hoisting has no side effects anyways, so don't skip since we delay resolve 205 // only skip in the most trivial case, which does not require resolve 206 if (dynamic_cast<ConstantExpr *>(arrayType->dimension)) return; 207 // if ( ! Tuples::maybeImpure( arrayType->dimension ) ) return; 204 // xxx - hoisting has no side effects anyways, so don't skip since we delay resolve 205 // still try to detect constant expressions 206 if ( ! Tuples::maybeImpure( arrayType->dimension ) ) return; 208 207 209 208 ObjectDecl * arrayDimension = new ObjectDecl( dimensionName.newName(), storageClasses, LinkageSpec::C, 0, Validate::SizeType->clone(), new SingleInit( arrayType->get_dimension() ) ); -
src/main.cc
r0b996a1 r8ca26d5 341 341 342 342 if( useNewAST) { 343 if (Stats::Counters::enabled) { 344 ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New"); 345 ast::pass_visitor_stats.max = Stats::Counters::build<Stats::Counters::MaxCounter<double>>("Max depth - New"); 346 } 343 347 auto transUnit = convert( move( translationUnit ) ); 344 348 PASS( "Resolve", ResolvExpr::resolve( transUnit ) );
Note:
See TracChangeset
for help on using the changeset viewer.