Skip to content

Commit 96a74c4

Browse files
committed
[ValueLattice] Fix typo in condition (NFC)
Fix typo pointed out by Roman Divacky. There should be no functional change, as the rest of the code will return nullptr for undef anyway. The condition is just there for clarity.
1 parent 69112d0 commit 96a74c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ValueLattice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ValueLatticeElement::getCompare(CmpInst::Predicate Pred, Type *Ty,
2020

2121
// TODO: Can be made more precise, but always returning undef would be
2222
// incorrect.
23-
if (isUndef() || isUndef())
23+
if (isUndef() || Other.isUndef())
2424
return nullptr;
2525

2626
if (isConstant() && Other.isConstant())

0 commit comments

Comments
 (0)