Skip to content

Commit

Permalink
[ValueLattice] Remove redundant check (NFC)
Browse files Browse the repository at this point in the history
This will already be checked inside markConstant().
  • Loading branch information
nikic committed Dec 19, 2023
1 parent ab41ea4 commit a7c05bf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions llvm/include/llvm/Analysis/ValueLattice.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ class ValueLatticeElement {

static ValueLatticeElement get(Constant *C) {
ValueLatticeElement Res;
if (isa<UndefValue>(C))
Res.markUndef();
else
Res.markConstant(C);
Res.markConstant(C);
return Res;
}
static ValueLatticeElement getNot(Constant *C) {
Expand Down

0 comments on commit a7c05bf

Please sign in to comment.