- File:
-
- 1 edited
-
src/ResolvExpr/CurrentObject.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CurrentObject.cc
r8f557161 r699a97d 689 689 690 690 auto arg = eval( expr ); 691 assertf( arg.hasKnownValue, "Non-evaluable expression made it to IndexIterator" ); 692 index = arg.knownValue; 691 index = arg.first; 693 692 694 693 // if ( auto constExpr = dynamic_cast< const ConstantExpr * >( expr ) ) { … … 729 728 size_t getSize( const Expr * expr ) { 730 729 auto res = eval( expr ); 731 if ( !res. hasKnownValue) {730 if ( !res.second ) { 732 731 SemanticError( location, toString( "Array designator must be a constant expression: ", expr ) ); 733 732 } 734 return res. knownValue;733 return res.first; 735 734 } 736 735
Note:
See TracChangeset
for help on using the changeset viewer.