================
@@ -9834,7 +9838,7 @@ static void setLimitsForBinOp(const BinaryOperator &BO, 
APInt &Lower,
       // is never larger than the signed range. Example:
       // "sub nuw nsw i8 -2, x" is unsigned [0, 254] vs. signed [-128, 126].
       // "sub nuw nsw i8 2, x" is unsigned [0, 2] vs. signed [-125, 127].
-      if (PreferSignedRange && HasNSW && HasNUW)
+      if (ForSigned && HasNSW && HasNUW)
----------------
mgudim wrote:

nit: don't rename to keep the diff minimal

https://github.com/llvm/llvm-project/pull/181110
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to