Changeset 3648d98 for src/InitTweak


Ignore:
Timestamp:
May 15, 2019, 4:10:17 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
89c2f7c9
Parents:
69bafd2
Message:

Clean up warnings/errors from ast::Type merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r69bafd2 r3648d98  
    515515        }
    516516        const ast::Type* getPointerBase( const ast::Type* t ) {
    517                 if ( const ast::PointerType* p = dynamic_cast< const ast::PointerType* >( t ) ) {
    518                         return p->base;
    519                 } else if ( const ast::ArrayType* a = dynamic_cast< const ast::ArrayType* >( t ) ) {
    520                         return a->base;
    521                 } else if ( const ast::ReferenceType* r = dynamic_cast< const ast::ReferenceType* >( t ) ) {
    522                         return r->base;
    523                 } else return nullptr;
     517                assert(!"needs to build Type.cpp before inclusion");
     518                // if ( const ast::PointerType* p = dynamic_cast< const ast::PointerType* >( t ) ) {
     519                //      return p->base;
     520                // } else if ( const ast::ArrayType* a = dynamic_cast< const ast::ArrayType* >( t ) ) {
     521                //      return a->base;
     522                // } else if ( const ast::ReferenceType* r = dynamic_cast< const ast::ReferenceType* >( t ) ) {
     523                //      return r->base;
     524                // } else return nullptr;
    524525        }
    525526
Note: See TracChangeset for help on using the changeset viewer.