Changeset 5f98ce5 for src/ResolvExpr
- Timestamp:
- Jul 19, 2016, 7:09:30 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 40e636a
- Parents:
- 2be1023
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r2be1023 r5f98ce5 24 24 #include "SynTree/Initializer.h" 25 25 #include "SymTab/Indexer.h" 26 #include "SymTab/Autogen.h" 26 27 #include "Common/utility.h" 27 28 #include "InitTweak/InitTweak.h" … … 194 195 void Resolver::visit( ArrayType * at ) { 195 196 if ( at->get_dimension() ) { 196 BasicType arrayLenType = BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ); 197 CastExpr *castExpr = new CastExpr( at->get_dimension(), arrayLenType.clone() ); 197 CastExpr *castExpr = new CastExpr( at->get_dimension(), SymTab::SizeType->clone() ); 198 198 Expression *newExpr = findSingleExpression( castExpr, *this ); 199 199 delete at->get_dimension();
Note: See TracChangeset
for help on using the changeset viewer.