Skip to content

Commit 6786858

Browse files
el-evdtcxzyw
andauthored
Update llvm/lib/Analysis/ValueTracking.cpp
Co-authored-by: Yingwei Zheng <[email protected]>
1 parent 90d1ed7 commit 6786858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3545,7 +3545,7 @@ bool isKnownNonZero(const Value *V, const APInt &DemandedElts,
35453545
return true;
35463546

35473547
if (const Value *Stripped = stripNullTest(V))
3548-
return isKnownNonZero(Stripped, DemandedElts, Q, Depth + 1);
3548+
return isKnownNonZero(Stripped, DemandedElts, Q, Depth);
35493549

35503550
return false;
35513551
}

0 commit comments

Comments
 (0)