[cfe-commits] r67148 - in /cfe/trunk: lib/Sema/SemaTemplateInstantiate.cpp test/SemaTemplate/instantiate-expr-2.cpp
Gabor Greif
ggreif at gmail.com
Tue Mar 17 18:16:09 PDT 2009
Author: ggreif
Date: Tue Mar 17 20:16:08 2009
New Revision: 67148
URL: http://llvm.org/viewvc/llvm-project?rev=67148&view=rev
Log:
cleanup instantiation code, tighten testcase
Modified:
cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp
cfe/trunk/test/SemaTemplate/instantiate-expr-2.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp?rev=67148&r1=67147&r2=67148&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp Tue Mar 17 20:16:08 2009
@@ -846,9 +846,6 @@
if (Result.isInvalid())
return SemaRef.ExprError();
-/* Cond.release();
- True.release();
- False.release();*/
return move(Result);
}
Modified: cfe/trunk/test/SemaTemplate/instantiate-expr-2.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/instantiate-expr-2.cpp?rev=67148&r1=67147&r2=67148&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/instantiate-expr-2.cpp (original)
+++ cfe/trunk/test/SemaTemplate/instantiate-expr-2.cpp Tue Mar 17 20:16:08 2009
@@ -95,7 +95,11 @@
};
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());
}
More information about the cfe-commits
mailing list