unbreak compiler_crashers_fixed/26558-swift-constraints-constraintsystem-gettypeofmemberreference.swift,

I'll reduce a testcase later.


Swift SVN r31020
This commit is contained in:
Chris Lattner
2015-08-05 00:57:19 +00:00
parent 8ef04bd42e
commit df60eccbf5

View File

@@ -3520,7 +3520,8 @@ bool FailureDiagnosis::visitCallExpr(CallExpr *callExpr) {
// argument analysis stuff.
// TODO: If all candidates have the same type for some argument, we could pass
// down partial information.
if (fnType->hasTypeVariable() && calleeInfo.size() == 1)
if (fnType->hasTypeVariable() && calleeInfo.size() == 1 &&
calleeInfo[0].getUncurriedFunctionType())
fnType = calleeInfo[0].getUncurriedFunctionType();
// If we resolved a concrete expression for the callee, and it has