Skip to content

Commit 818adf9

Browse files
committed
avoid crash
1 parent 3e814e8 commit 818adf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/AST/ASTVisitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2328,7 +2328,7 @@ extractSFINAEInfo(QualType const T)
23282328
Result.Type = resultType->getAsType();
23292329
for (std::size_t I = 0; I < Args.size(); ++I)
23302330
{
2331-
if (SFINAEControl->ControllingParams[I])
2331+
if (I < SFINAEControl->ControllingParams.size() && SFINAEControl->ControllingParams[I])
23322332
{
23332333
MRDOCS_SYMBOL_TRACE(Args[I], context_);
23342334
TemplateArgument ArgsI = Args[I];

0 commit comments

Comments
 (0)