summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-07-08 23:35:04 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-07-08 23:35:04 +0000
commit544c956b72e4ea78de4c8b096af7793838af975b (patch)
tree124425cf5164fa63ce645b2ed81b1a10315c25cc /clang/lib/Sema/Sema.cpp
parentc9c57518abc2aa410121915e34887ab1635a988b (diff)
downloadbcm5719-llvm-544c956b72e4ea78de4c8b096af7793838af975b.tar.gz
bcm5719-llvm-544c956b72e4ea78de4c8b096af7793838af975b.zip
Fix crash typo-correcting dependent member func.
PR16561. llvm-svn: 185887
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 3ddce77a883..e55e128daef 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -1187,7 +1187,7 @@ bool Sema::tryExprAsCall(Expr &E, QualType &ZeroArgCallReturnTy,
// Attempt to call the member with no arguments - this will correctly handle
// member templates with defaults/deduction of template arguments, overloads
// with default arguments, etc.
- if (IsMemExpr) {
+ if (IsMemExpr && !E.isTypeDependent()) {
bool Suppress = getDiagnostics().getSuppressAllDiagnostics();
getDiagnostics().setSuppressAllDiagnostics(true);
ExprResult R = BuildCallToMemberFunction(NULL, &E, SourceLocation(), None,
OpenPOWER on IntegriCloud