break;
case OR_No_Viable_Function:
- if (!DestType.getNonReferenceType()->isIncompleteType() ||
- !S.RequireCompleteType(Kind.getLocation(),
+ if (!S.RequireCompleteType(Kind.getLocation(),
DestType.getNonReferenceType(),
diag::err_typecheck_nonviable_condition_incomplete,
Args[0]->getType(), Args[0]->getSourceRange()))
diag::err_typecheck_ambiguous_condition)
<< From->getType() << ToType << From->getSourceRange();
else if (OvResult == OR_No_Viable_Function && !CandidateSet.empty()) {
- if (!ToType->isIncompleteType() ||
- !RequireCompleteType(From->getLocStart(), ToType,
+ if (!RequireCompleteType(From->getLocStart(), ToType,
diag::err_typecheck_nonviable_condition_incomplete,
From->getType(), From->getSourceRange()))
Diag(From->getLocStart(),