]> granicus.if.org Git - clang/commitdiff
Fix a typo when determining whether to strip cv-qualifiers during template argument...
authorDouglas Gregor <dgregor@apple.com>
Tue, 30 Aug 2011 00:37:54 +0000 (00:37 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 30 Aug 2011 00:37:54 +0000 (00:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138787 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplateDeduction.cpp

index 824b9d9abb8e62a0d2716869a6ccb029a72da007..762e51a32c8026a46cc9482ed08fe9ca4ee39318 100644 (file)
@@ -3237,7 +3237,7 @@ Sema::DeduceTemplateArguments(FunctionTemplateDecl *FunctionTemplate,
   // 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,