[cfe-commits] r122898 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/TreeTransform.h
Douglas Gregor
dgregor at apple.com
Wed Jan 5 11:06:29 PST 2011
Author: dgregor
Date: Wed Jan 5 13:06:29 2011
New Revision: 122898
URL: http://llvm.org/viewvc/llvm-project?rev=122898&view=rev
Log:
Eliminate two "unsupported" errors relating to variadic templates: one
for template template argument pack expansions (which was no longer
used) and another that was a placeholder for an llvm_unreachable.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/Sema/TreeTransform.h
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=122898&r1=122897&r2=122898&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Wed Jan 5 13:06:29 2011
@@ -1875,10 +1875,6 @@
"%0 does not refer to the name of a parameter pack">;
// Unsupported variadic templates features
-def err_pack_expansion_unsupported : Error<
- "clang does not yet support template pack expansions">;
-def err_pack_expansion_instantiation_unsupported : Error<
- "clang cannot yet instantiate pack expansions">;
def err_pack_expansion_mismatch_unsupported : Error<
"clang cannot yet instantiate pack expansions with mismatched pack levels">;
def err_function_parameter_pack_unsupported : Error<
Modified: cfe/trunk/lib/Sema/TreeTransform.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/TreeTransform.h?rev=122898&r1=122897&r2=122898&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/TreeTransform.h (original)
+++ cfe/trunk/lib/Sema/TreeTransform.h Wed Jan 5 13:06:29 2011
@@ -3988,9 +3988,7 @@
template<typename Derived>
QualType TreeTransform<Derived>::TransformPackExpansionType(TypeLocBuilder &TLB,
PackExpansionTypeLoc TL) {
- // FIXME: Implement!
- getSema().Diag(TL.getEllipsisLoc(),
- diag::err_pack_expansion_instantiation_unsupported);
+ llvm_unreachable("Caller must expansion pack expansion types");
return QualType();
}
More information about the cfe-commits
mailing list