diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -1392,6 +1392,11 @@ // This should never be overloaded and so should never return null. CalleeType = Expr::findBoundMemberType(Callee); + } else if (CalleeType->isSpecificPlaceholderType(BuiltinType::Overload)) { + ASTContext::GetBuiltinTypeError Error; + QualType RetTy = Ctx.GetBuiltinType(BuiltinType::Dependent, Error); + assert(Error == ASTContext::GE_None); + return RetTy; } const FunctionType *FnType = CalleeType->castAs();