Changes in src/SymTab/GenImplicitCall.cpp [14c0f7b:8913de4]
- File:
-
- 1 edited
-
src/SymTab/GenImplicitCall.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/GenImplicitCall.cpp
r14c0f7b r8913de4 16 16 #include "GenImplicitCall.hpp" 17 17 18 #include "AST/Copy.hpp" // for deepCopy19 18 #include "AST/Decl.hpp" // for ObjectDecl 20 19 #include "AST/Expr.hpp" // for ConstantExpr, UntypedExpr,... … … 116 115 std::string cmp, update; 117 116 118 const ast::Expr * dimension = deepCopy( array->dimension );119 117 if ( forward ) { 120 118 // generate: for ( int i = 0; i < N; ++i ) 121 119 begin = ast::ConstantExpr::from_int( loc, 0 ); 122 end = dimension;120 end = array->dimension; 123 121 cmp = "?<?"; 124 122 update = "++?"; … … 126 124 // generate: for ( int i = N-1; i >= 0; --i ) 127 125 begin = ast::UntypedExpr::createCall( loc, "?-?", 128 { dimension, ast::ConstantExpr::from_int( loc, 1 ) } );126 { array->dimension, ast::ConstantExpr::from_int( loc, 1 ) } ); 129 127 end = ast::ConstantExpr::from_int( loc, 0 ); 130 128 cmp = "?>=?";
Note:
See TracChangeset
for help on using the changeset viewer.