From: Douglas Gregor Date: Fri, 18 Jun 2010 22:12:56 +0000 (+0000) Subject: A trivial fix for a test case that's too horrible to commit. Fixes X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96fb42ea29253cf2b34848dfdb3e40ef14ca8ebc;p=clang A trivial fix for a test case that's too horrible to commit. Fixes . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106328 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h index 910aadbdc8..6032244a15 100644 --- a/lib/Sema/TreeTransform.h +++ b/lib/Sema/TreeTransform.h @@ -544,6 +544,9 @@ public: TemplateName InstName = getDerived().RebuildTemplateName(NNS, *Name, QualType()); + if (InstName.isNull()) + return QualType(); + // If it's still dependent, make a dependent specialization. if (InstName.getAsDependentTemplateName()) return SemaRef.Context.getDependentTemplateSpecializationType(