Changeset 9c791dd


Ignore:
Timestamp:
Jul 13, 2016, 2:25:04 PM (8 years ago)
Author:
Aaron Moss <a3moss@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

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.