From f7ced25a2aba4524332dd1ce858163ece579591b Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 2 Jun 2010 15:46:52 +0000 Subject: Fix unintentional method call due to false -> pointer conversion; patch by Dimitry Andric! llvm-svn: 105327 --- clang/lib/Sema/SemaExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index f745352d998..d4d4d1ea399 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -941,7 +941,7 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, // We didn't find anything, so try to correct for a typo. DeclarationName Corrected; - if (S && (Corrected = CorrectTypo(R, S, &SS, false, CTC))) { + if (S && (Corrected = CorrectTypo(R, S, &SS, 0, false, CTC))) { if (!R.empty()) { if (isa(*R.begin()) || isa(*R.begin())) { if (SS.isEmpty()) -- cgit v1.2.3