diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-03-18 01:16:08 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-03-18 01:16:08 +0000 |
commit | 6c473c8ce72634b0ee07fb06ad6392317bf94ae3 (patch) | |
tree | a95f011e0599fbd9fc5fa401b9bbf4f7fb261754 | |
parent | e7783ab29ae011b11f30825452530eef3d363323 (diff) |
cleanup instantiation code, tighten testcase
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67148 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaTemplateInstantiate.cpp | 3 | ||||
-rw-r--r-- | test/SemaTemplate/instantiate-expr-2.cpp | 6 |
2 files changed, 5 insertions, 4 deletions
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, int, char>::True True; - typedef Cond<false, int, char>::False False; + typedef Cond<true, int, char>::False False; + + // check that we have the right types + Lookup<1> const &L1(False()); + Lookup<sizeof(int)> const &L2(True()); } |