From 7dddfa2a9c14d9627d76474c05542a5675c7716e Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Fri, 8 Nov 2019 17:27:42 +0300 Subject: [PATCH] [NFC] ConstantRange::subWithNoWrap(): fixup comment --- llvm/lib/IR/ConstantRange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/IR/ConstantRange.cpp b/llvm/lib/IR/ConstantRange.cpp index 71dd2d9..68c3c7a 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) -- 2.7.4