]> granicus.if.org Git - clang/commitdiff
Fix unintentional method call due to false -> pointer conversion; patch by Dimitry...
authorDaniel Dunbar <daniel@zuster.org>
Wed, 2 Jun 2010 15:46:52 +0000 (15:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 2 Jun 2010 15:46:52 +0000 (15:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105327 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index f745352d998f81c5761d8990a7bcb11c23421c15..d4d4d1ea399a164e0c8cec22ec15732996ace7ed 100644 (file)
@@ -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<ValueDecl>(*R.begin()) || isa<FunctionTemplateDecl>(*R.begin())) {
         if (SS.isEmpty())