Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/PtrsAssignable.cc

    r5ccb10d rea6332d  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // PtrsAssignable.cc --
     7// PtrsAssignable.cc -- 
    88//
    99// Author           : Richard C. Bilson
     
    1414//
    1515
    16 #include "typeops.h"
    17 #include "SynTree/Type.h"
    18 #include "SynTree/Declaration.h"
    19 #include "SynTree/Visitor.h"
     16#include "ResolvExpr/TypeEnvironment.h"  // for EqvClass, TypeEnvironment
     17#include "SynTree/Type.h"                // for TypeInstType, Type, BasicType
     18#include "SynTree/Visitor.h"             // for Visitor
    2019
    2120
     
    8382        void PtrsAssignable::visit(  __attribute__((unused)) UnionInstType *inst ) {}
    8483
    85         void PtrsAssignable::visit( EnumInstType * ) {
    86                 if ( dynamic_cast< EnumInstType* >( dest ) ) {
     84        void PtrsAssignable::visit( EnumInstType *inst ) {
     85                if ( dynamic_cast< EnumInstType* >( inst ) ) {
    8786                        result = 1;
    88                 } else if ( BasicType *bt = dynamic_cast< BasicType* >( dest ) ) {
     87                } else if ( BasicType *bt = dynamic_cast< BasicType* >( inst ) ) {
    8988                        result = bt->get_kind() == BasicType::SignedInt;
    9089                }
     
    105104        void PtrsAssignable::visit(  __attribute__((unused)) ZeroType *zeroType ) {}
    106105        void PtrsAssignable::visit(  __attribute__((unused)) OneType *oneType ) {}
    107 
     106       
    108107} // namespace ResolvExpr
    109108
Note: See TracChangeset for help on using the changeset viewer.