mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-03 07:38:57 +00:00
Remove redundant assertion.
llvm-svn: 290780
This commit is contained in:
parent
0ef5d288b4
commit
e8a94565d2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user