Changes in src/ResolvExpr/Resolver.cc [843054c2:d1d17f5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r843054c2 rd1d17f5 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 12:17:01 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sun May 17 12:18:17201513 // Update Count : 2 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon Jun 01 13:47:16 2015 13 // Update Count : 21 14 14 // 15 15 … … 157 157 initContext = new_type; 158 158 SymTab::Indexer::visit( objectDecl ); 159 160 if ( ArrayType * at = dynamic_cast< ArrayType * >( new_type ) ){ 161 BasicType arrayLenType = BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ); 162 CastExpr *castExpr = new CastExpr( at->get_dimension(), arrayLenType.clone() ); 163 Expression *newExpr = findSingleExpression( castExpr, *this ); 164 delete at->get_dimension(); 165 at->set_dimension( newExpr ); 166 } 159 167 } 160 168
Note: See TracChangeset
for help on using the changeset viewer.