Skip to content

Commit 45c94f8

Browse files
committed
[ConstraintElim] Update decompose calls after llvm#118219 to the downstream API
1 parent aa2c833 commit 45c94f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Scalar/ConstraintElimination.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,8 @@ static Decomposition decompose(Value *V,
628628
return MergeResults(Op0, Op1, IsSigned);
629629

630630
if (match(V, m_NSWSub(m_Value(Op0), m_Value(Op1)))) {
631-
auto ResA = decompose(Op0, Preconditions, IsSigned, DL);
632-
auto ResB = decompose(Op1, Preconditions, IsSigned, DL);
631+
auto ResA = decompose(Op0, Preconditions, IsSigned, State);
632+
auto ResB = decompose(Op1, Preconditions, IsSigned, State);
633633
ResA.sub(ResB);
634634
return ResA;
635635
}

0 commit comments

Comments
 (0)