r197185 - PR18229: Fix typo in assert condition.

Richard Smith richard-llvm at metafoo.co.uk
Thu Dec 12 15:14:16 PST 2013


Author: rsmith
Date: Thu Dec 12 17:14:16 2013
New Revision: 197185

URL: http://llvm.org/viewvc/llvm-project?rev=197185&view=rev
Log:
PR18229: Fix typo in assert condition.

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=197185&r1=197184&r2=197185&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp Thu Dec 12 17:14:16 2013
@@ -4653,7 +4653,7 @@ Sema::getMoreSpecializedPartialSpecializ
   SmallVector<DeducedTemplateArgument, 4> Deduced;
   TemplateDeductionInfo Info(Loc);
 
-  assert(PS1->getSpecializedTemplate() == PS1->getSpecializedTemplate() &&
+  assert(PS1->getSpecializedTemplate() == PS2->getSpecializedTemplate() &&
          "the partial specializations being compared should specialize"
          " the same template.");
   TemplateName Name(PS1->getSpecializedTemplate());





More information about the cfe-commits mailing list