Fixed #9693 (Bug hunting: Segmentation fault with --bug-hunting and clangimport.cpp)
This commit is contained in:
parent
04bd2bdb74
commit
39710f106c
|
@ -1491,6 +1491,8 @@ static void execute(const Token *start, const Token *end, Data &data)
|
||||||
while (scope->type == Scope::eIf || scope->type == Scope::eElse)
|
while (scope->type == Scope::eIf || scope->type == Scope::eElse)
|
||||||
scope = scope->nestedIn;
|
scope = scope->nestedIn;
|
||||||
tok = scope->bodyEnd;
|
tok = scope->bodyEnd;
|
||||||
|
if (!precedes(tok,end))
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Token::simpleMatch(tok, "try"))
|
if (Token::simpleMatch(tok, "try"))
|
||||||
|
|
Loading…
Reference in New Issue