Skip to content

Commit a7c05bf

Browse files
committed
[ValueLattice] Remove redundant check (NFC)
This will already be checked inside markConstant().
1 parent ab41ea4 commit a7c05bf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/include/llvm/Analysis/ValueLattice.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,7 @@ class ValueLatticeElement {
202202

203203
static ValueLatticeElement get(Constant *C) {
204204
ValueLatticeElement Res;
205-
if (isa<UndefValue>(C))
206-
Res.markUndef();
207-
else
208-
Res.markConstant(C);
205+
Res.markConstant(C);
209206
return Res;
210207
}
211208
static ValueLatticeElement getNot(Constant *C) {

0 commit comments

Comments
 (0)