Avoid warnings.

llvm-svn: 72976
This commit is contained in:
Mike Stump 2009-06-05 23:49:48 +00:00
parent 5f11afc442
commit dedc0968cf
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ TemplateArgument::TemplateArgument(Expr *E) : Kind(Expression) {
//===----------------------------------------------------------------------===//
void TemplateArgumentListBuilder::push_back(const TemplateArgument& Arg) {
switch (Arg.getKind()) {
default: break;
case TemplateArgument::Type:
assert(Arg.getAsType()->isCanonical() && "Type must be canonical!");
break;