Changeset c9c9ac4f


Ignore:
Timestamp:
Aug 29, 2018, 3:19:47 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
546b51e
Parents:
098f7ff
Message:

Add assertions for non-null types in Lvalue.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Lvalue.cc

    r098f7ff rc9c9ac4f  
    353353                        Type * destType = castExpr->result;
    354354                        Type * srcType = castExpr->arg->result;
     355                        assertf( destType, "Cast to no type in: %s", toCString( castExpr ) );
     356                        assertf( srcType, "Cast from no type in: %s", toCString( castExpr ) );
    355357                        int depth1 = destType->referenceDepth();
    356358                        int depth2 = srcType->referenceDepth();
Note: See TracChangeset for help on using the changeset viewer.