ForwardAnalyzer: Fix crash in cast '(T* &&)', the && does not have operands
This commit is contained in:
parent
5ea01c5d60
commit
2600dee36c
|
@ -232,6 +232,11 @@ struct ForwardTraversal {
|
|||
for (Token* tok = start; tok && tok != end; tok = tok->next()) {
|
||||
Token* next = nullptr;
|
||||
|
||||
if (tok->str() == "(" && tok->isCast()) {
|
||||
tok = tok->link();
|
||||
continue;
|
||||
}
|
||||
|
||||
// Evaluate RHS of assignment before LHS
|
||||
if (Token* assignTok = assignExpr(tok)) {
|
||||
if (updateRecursive(assignTok->astOperand2()) == Progress::Break)
|
||||
|
|
Loading…
Reference in New Issue