Changes in / [d1b9d78:9c791dd]
- File:
-
- 1 edited
-
src/ResolvExpr/AdjustExprType.cc (modified) (3 diffs)
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.