Fixed #3422 (Internal error in exceptRethrowCopy check)
This commit is contained in:
parent
d21ca7881c
commit
3e9d8e6ae1
|
@ -138,11 +138,13 @@ void CheckExceptionSafety::checkRethrowCopy()
|
|||
endScopeTok = startScopeTok->link();
|
||||
const unsigned int varid = endBracketTok->previous()->varId();
|
||||
|
||||
if (varid > 0) {
|
||||
const Token* rethrowTok = Token::findmatch(startScopeTok->next(), "throw %varid%", endScopeTok->previous(), varid);
|
||||
if (rethrowTok) {
|
||||
rethrowCopyError(rethrowTok, endBracketTok->strAt(-1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tok = Token::findsimplematch(endScopeTok->next(), catchPattern1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue