[NFC] ConstantRange::subWithNoWrap(): fixup comment
authorRoman Lebedev <lebedev.ri@gmail.com>
Fri, 8 Nov 2019 14:27:42 +0000 (17:27 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 8 Nov 2019 14:52:43 +0000 (17:52 +0300)
llvm/lib/IR/ConstantRange.cpp

index 71dd2d9..68c3c7a 100644 (file)
@@ -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)