forked from OSchip/llvm-project
Be paranoid about NULL size expressions in dependently-sized array types
llvm-svn: 122454
This commit is contained in:
parent
8ef5001b27
commit
7a49ead680
|
@ -704,6 +704,7 @@ DeduceTemplateArguments(Sema &S,
|
|||
}
|
||||
if (const DependentSizedArrayType *DependentArrayArg
|
||||
= dyn_cast<DependentSizedArrayType>(ArrayArg))
|
||||
if (DependentArrayArg->getSizeExpr())
|
||||
return DeduceNonTypeTemplateArgument(S, NTTP,
|
||||
DependentArrayArg->getSizeExpr(),
|
||||
Info, Deduced);
|
||||
|
|
Loading…
Reference in New Issue