Changeset 9c791dd
- Timestamp:
- Jul 13, 2016, 2:25:04 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:
- f1231f2
- Parents:
- d1b9d78 (diff), 834d4fc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AdjustExprType.cc
rd1b9d78 r9c791dd 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // AdjustExprType.cc -- 7 // AdjustExprType.cc -- 8 8 // 9 9 // Author : Richard C. Bilson … … 12 12 // Last Modified On : Wed Mar 2 17:34:53 2016 13 13 // Update Count : 4 14 // 14 // 15 15 16 16 #include "typeops.h" … … 65 65 66 66 Type *AdjustExprType::mutate( ArrayType *arrayType ) { 67 PointerType *pointerType = new PointerType( arrayType->get_qualifiers(), arrayType->get_base()->clone() ); 67 // need to recursively mutate the base type in order for multi-dimensional arrays to work. 68 PointerType *pointerType = new PointerType( arrayType->get_qualifiers(), arrayType->get_base()->clone()->acceptMutator( *this ) ); 68 69 delete arrayType; 69 70 return pointerType;
Note: See TracChangeset
for help on using the changeset viewer.