projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69112d0
)
[ValueLattice] Fix typo in condition (NFC)
author
Nikita Popov
<npopov@redhat.com>
Wed, 2 Nov 2022 16:50:02 +0000
(17:50 +0100)
committer
Nikita Popov
<npopov@redhat.com>
Wed, 2 Nov 2022 16:52:13 +0000
(17:52 +0100)
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.
llvm/lib/Analysis/ValueLattice.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/ValueLattice.cpp
b/llvm/lib/Analysis/ValueLattice.cpp
index
aec7b99
..
1d2177a
100644
(file)
--- a/
llvm/lib/Analysis/ValueLattice.cpp
+++ b/
llvm/lib/Analysis/ValueLattice.cpp
@@
-20,7
+20,7
@@
ValueLatticeElement::getCompare(CmpInst::Predicate Pred, Type *Ty,
// TODO: Can be made more precise, but always returning undef would be
// incorrect.
- if (isUndef() || isUndef())
+ if (isUndef() ||
Other.
isUndef())
return nullptr;
if (isConstant() && Other.isConstant())