Changeset fd642d2 for src/Tuples


Ignore:
Timestamp:
Jul 22, 2019, 2:19:57 PM (5 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
8fc15cf, c60a664
Parents:
884f1409
Message:

Added const in a few more places. This should be all the leaf areas need to make unify const.

Location:
src/Tuples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Tuples/TupleExpansion.cc

    r884f1409 rfd642d2  
    350350        }
    351351
     352        const TypeInstType * isTtype( const Type * type ) {
     353                if ( const TypeInstType * inst = dynamic_cast< const TypeInstType * >( type ) ) {
     354                        if ( inst->baseType && inst->baseType->kind == TypeDecl::Ttype ) {
     355                                return inst;
     356                        }
     357                }
     358                return nullptr;
     359        }
     360
    352361        const ast::TypeInstType * isTtype( const ast::Type * type ) {
    353362                if ( const ast::TypeInstType * inst = dynamic_cast< const ast::TypeInstType * >( type ) ) {
  • src/Tuples/Tuples.h

    r884f1409 rfd642d2  
    5252        /// returns a TypeInstType if `type` is a ttype, nullptr otherwise
    5353        TypeInstType * isTtype( Type * type );
     54        const TypeInstType * isTtype( const Type * type );
    5455        const ast::TypeInstType * isTtype( const ast::Type * type );
    5556
Note: See TracChangeset for help on using the changeset viewer.