Skip to content

Commit 94537bf

Browse files
fixup! fixup! fixup! fixup! fixup! fixup! Fix #8260 Improve check: Pointer calculation result not null
1 parent 220b41e commit 94537bf

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/checkcondition.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,9 +1855,6 @@ void CheckConditionImpl::checkPointerAdditionResultNotNull()
18551855
if (tok->isComparisonOp() && tok->astOperand1() && tok->astOperand2()) {
18561856
const Token *exprToken = tok->astOperand1() == calcToken ? tok->astOperand2() : tok->astOperand1();
18571857

1858-
if (!exprToken)
1859-
continue;
1860-
18611858
if (!exprToken->hasKnownIntValue() || !exprToken->getValue(0))
18621859
continue;
18631860

0 commit comments

Comments
 (0)