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