Skip to content

Commit fbd029c

Browse files
author
Thorsten Schütt
committed
remove else after return
1 parent e75521b commit fbd029c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -6962,12 +6962,12 @@ bool CombinerHelper::matchAddOverflow(MachineInstr &MI, BuildFnTy &MatchInfo) {
69626962
B.buildSAddo(Dst, Carry, RHS, LHS);
69636963
};
69646964
return true;
6965-
} else {
6966-
MatchInfo = [=](MachineIRBuilder &B) {
6967-
B.buildUAddo(Dst, Carry, RHS, LHS);
6968-
};
6969-
return true;
69706965
}
6966+
// !IsSigned
6967+
MatchInfo = [=](MachineIRBuilder &B) {
6968+
B.buildUAddo(Dst, Carry, RHS, LHS);
6969+
};
6970+
return true;
69716971
}
69726972

69736973
std::optional<APInt> MaybeLHS = getConstantOrConstantSplatVector(LHS);

0 commit comments

Comments
 (0)