]> granicus.if.org Git - clang/commitdiff
A trivial fix for a test case that's too horrible to commit. Fixes
authorDouglas Gregor <dgregor@apple.com>
Fri, 18 Jun 2010 22:12:56 +0000 (22:12 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 18 Jun 2010 22:12:56 +0000 (22:12 +0000)
<rdar://problem/8108088>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106328 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/TreeTransform.h

index 910aadbdc83e4145bcf6a39f404520c6bc3d5f7f..6032244a15c2444a1633603e64ff8c1449d4a08f 100644 (file)
@@ -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(