aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-03-16 18:21:05 +0000
committerDouglas Gregor <dgregor@apple.com>2011-03-16 18:21:05 +0000
commit60b3e38d421cab497de1c62c06be6a6a5f321edf (patch)
treefb9ded8b642c8530ceb2774aaec501420ae12eba /lib/Sema/SemaExpr.cpp
parenteed5ddc25539e14de11888ec69007217e777c02a (diff)
Don't indescriminately print overload candidates when we have invalid
operands to a binary expression; it doesn't make sense in all contexts. The right answer would be to see if the user forgot at (). Fixes <rdar://problem/9136502>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index c208ed2fca..6acd2a5b03 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -6312,10 +6312,6 @@ QualType Sema::InvalidOperands(SourceLocation Loc, Expr *&lex, Expr *&rex) {
Diag(Loc, diag::err_typecheck_invalid_operands)
<< lex->getType() << rex->getType()
<< lex->getSourceRange() << rex->getSourceRange();
- if (lex->getType() == Context.OverloadTy)
- NoteAllOverloadCandidates(lex);
- if (rex->getType() == Context.OverloadTy)
- NoteAllOverloadCandidates(rex);
return QualType();
}