Changeset 969ee0df


Ignore:
Timestamp:
Jun 22, 2017, 11:41:09 AM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, 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.