Skip to content

Commit 7dddfa2

Browse files
committed
[NFC] ConstantRange::subWithNoWrap(): fixup comment
1 parent 5a9fd76 commit 7dddfa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/ConstantRange.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ ConstantRange ConstantRange::subWithNoWrap(const ConstantRange &Other,
915915

916916
// If an overflow happens for every value pair in these two constant ranges,
917917
// we must return Empty set. In signed case, we get that for free, because we
918-
// get lucky that intersection of add() with ssub_sat() results in an
918+
// get lucky that intersection of sub() with ssub_sat() results in an
919919
// empty set. But for unsigned we must perform the overflow check manually.
920920

921921
if (NoWrapKind & OBO::NoSignedWrap)

0 commit comments

Comments
 (0)