Changes in / [d1b9d78:9c791dd]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AdjustExprType.cc

    rd1b9d78 r9c791dd  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // AdjustExprType.cc -- 
     7// AdjustExprType.cc --
    88//
    99// Author           : Richard C. Bilson
     
    1212// Last Modified On : Wed Mar  2 17:34:53 2016
    1313// Update Count     : 4
    14 // 
     14//
    1515
    1616#include "typeops.h"
     
    6565
    6666        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 ) );
    6869                delete arrayType;
    6970                return pointerType;
Note: See TracChangeset for help on using the changeset viewer.