Changeset 969ee0df


Ignore:
Timestamp:
Jun 22, 2017, 11:41:09 AM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
9c90718
Parents:
e9a3b20b
git-author:
Rob Schluntz <rschlunt@…> (06/22/17 11:40:25)
git-committer:
Rob Schluntz <rschlunt@…> (06/22/17 11:41:09)
Message:

conversion of zero_t to function type does not require tuple specialization [fixes #17]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Specialize.cc

    re9a3b20b r969ee0df  
    9999                if ( FunctionType * fftype = getFunctionType( formalType ) ) {
    100100                        if ( fftype->isTtype() ) return true;
     101                        // conversion of 0 (null) to function type does not require tuple specialization
     102                        if ( dynamic_cast< ZeroType * >( actualType ) ) return false;
    101103                        FunctionType * aftype = getFunctionType( actualType );
    102104                        assertf( aftype, "formal type is a function type, but actual type is not." );
Note: See TracChangeset for help on using the changeset viewer.