summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/IR/ConstantRange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/ConstantRange.cpp b/llvm/lib/IR/ConstantRange.cpp
index 71dd2d99bd7..68c3c7ad90d 100644
--- a/llvm/lib/IR/ConstantRange.cpp
+++ b/llvm/lib/IR/ConstantRange.cpp
@@ -915,7 +915,7 @@ ConstantRange ConstantRange::subWithNoWrap(const ConstantRange &Other,
// If an overflow happens for every value pair in these two constant ranges,
// we must return Empty set. In signed case, we get that for free, because we
- // get lucky that intersection of add() with ssub_sat() results in an
+ // get lucky that intersection of sub() with ssub_sat() results in an
// empty set. But for unsigned we must perform the overflow check manually.
if (NoWrapKind & OBO::NoSignedWrap)
OpenPOWER on IntegriCloud