Skip to content

Commit 76dae60

Browse files
committed
Satisfy undef deprecator
1 parent eebe538 commit 76dae60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2627,11 +2627,11 @@ SDValue DAGCombiner::visitPTRADD(SDNode *N) {
26272627
EVT IntVT = N1.getValueType();
26282628
SDLoc DL(N);
26292629

2630-
// fold (ptradd undef, y) -> undef
2630+
// fold (ptradd und*f, y) -> und*f
26312631
if (N0.isUndef())
26322632
return N0;
26332633

2634-
// fold (ptradd x, undef) -> undef
2634+
// fold (ptradd x, und*f) -> und*f
26352635
if (N1.isUndef())
26362636
return DAG.getUNDEF(PtrVT);
26372637

0 commit comments

Comments
 (0)