[cfe-commits] r138787 - /cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp

Douglas Gregor dgregor at apple.com
Mon Aug 29 17:37:54 PDT 2011


Author: dgregor
Date: Mon Aug 29 19:37:54 2011
New Revision: 138787

URL: http://llvm.org/viewvc/llvm-project?rev=138787&view=rev
Log:
Fix a typo when determining whether to strip cv-qualifiers during template argument deduction

Modified:
    cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp

Modified: cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp?rev=138787&r1=138786&r2=138787&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp Mon Aug 29 19:37:54 2011
@@ -3237,7 +3237,7 @@
   // both P and A are pointers or member pointers. In this case, we
   // just ignore cv-qualifiers completely).
   if ((P->isPointerType() && A->isPointerType()) ||
-      (P->isMemberPointerType() && P->isMemberPointerType()))
+      (P->isMemberPointerType() && A->isMemberPointerType()))
     TDF |= TDF_IgnoreQualifiers;
   if (TemplateDeductionResult Result
         = ::DeduceTemplateArguments(*this, TemplateParams,





More information about the cfe-commits mailing list