summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ConstantRange.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-11-08 17:27:42 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2019-11-08 17:52:43 +0300
commit7dddfa2a9c14d9627d76474c05542a5675c7716e (patch)
treec1cfed6cf80369d630b3403262c112237ca17ef2 /llvm/lib/IR/ConstantRange.cpp
parent5a9fd76d2f7cd831cb02a33ea6a267256e37f69c (diff)
downloadbcm5719-llvm-7dddfa2a9c14d9627d76474c05542a5675c7716e.tar.gz
bcm5719-llvm-7dddfa2a9c14d9627d76474c05542a5675c7716e.zip
[NFC] ConstantRange::subWithNoWrap(): fixup comment
Diffstat (limited to 'llvm/lib/IR/ConstantRange.cpp')
-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