Skip to content

Commit 43d0a00

Browse files
committed
fix typos
1 parent 7880dec commit 43d0a00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ PoisonFlags::PoisonFlags(const Instruction *I) {
5151
NNeg = false;
5252
if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(I)) {
5353
NUW = OBO->hasNoUnsignedWrap();
54-
NSW = OBO->hasNoUnsignedWrap();
54+
NSW = OBO->hasNoSignedWrap();
5555
}
5656
if (auto *PEO = dyn_cast<PossiblyExactOperator>(I))
5757
Exact = PEO->isExact();
@@ -64,7 +64,7 @@ PoisonFlags::PoisonFlags(const Instruction *I) {
6464
void PoisonFlags::apply(Instruction *I) {
6565
if (isa<OverflowingBinaryOperator>(I)) {
6666
I->setHasNoUnsignedWrap(NUW);
67-
I->setHasNoUnsignedWrap(NSW);
67+
I->setHasNoSignedWrap(NSW);
6868
}
6969
if (isa<PossiblyExactOperator>(I))
7070
I->setIsExact(Exact);

0 commit comments

Comments
 (0)