Remove redundant assertion.

llvm-svn: 290780
This commit is contained in:
Richard Smith 2016-12-31 03:33:42 +00:00
parent 0ef5d288b4
commit e8a94565d2

View File

@ -3244,11 +3244,8 @@ DeduceFromInitializerList(Sema &S, TemplateParameterList *TemplateParams,
getDeducedParameterFromExpr(Info, ArrTy->getSizeExpr())) {
// We can perform template argument deduction for the given non-type
// template parameter.
assert(NTTP->getDepth() == 0 &&
"Cannot deduce non-type template argument at depth > 0");
llvm::APInt Size(S.Context.getIntWidth(NTTP->getType()),
ILE->getNumInits());
Result = DeduceNonTypeTemplateArgument(
S, TemplateParams, NTTP, llvm::APSInt(Size), NTTP->getType(),
/*ArrayBound=*/true, Info, Deduced);