From: Gabor Greif Date: Wed, 18 Mar 2009 01:16:08 +0000 (+0000) Subject: cleanup instantiation code, tighten testcase X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c473c8ce72634b0ee07fb06ad6392317bf94ae3;p=clang cleanup instantiation code, tighten testcase git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67148 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp index a943d4e2a0..59b795d0f5 100644 --- a/lib/Sema/SemaTemplateInstantiate.cpp +++ b/lib/Sema/SemaTemplateInstantiate.cpp @@ -846,9 +846,6 @@ TemplateExprInstantiator::VisitConditionalOperator(ConditionalOperator *E) { if (Result.isInvalid()) return SemaRef.ExprError(); -/* Cond.release(); - True.release(); - False.release();*/ return move(Result); } diff --git a/test/SemaTemplate/instantiate-expr-2.cpp b/test/SemaTemplate/instantiate-expr-2.cpp index 82cd757e68..7cfaa9c8ee 100644 --- a/test/SemaTemplate/instantiate-expr-2.cpp +++ b/test/SemaTemplate/instantiate-expr-2.cpp @@ -95,7 +95,11 @@ namespace N6 { }; typedef Cond::True True; - typedef Cond::False False; + typedef Cond::False False; + + // check that we have the right types + Lookup<1> const &L1(False()); + Lookup const &L2(True()); }