OSDN Git Service

[MathExtras] Remove unnecessary cast of a constant 1 in a subtract.
authorCraig Topper <craig.topper@intel.com>
Tue, 1 Aug 2017 04:18:34 +0000 (04:18 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 1 Aug 2017 04:18:34 +0000 (04:18 +0000)
commit0104e2f6f9abf06c12feede5311045c04e2a5499
tree72f3ce733498a7f394365b76e267ec61e4db52bd
parenteeca49d1ac55e25d607bb6abe5abd04ff9e77de9
[MathExtras] Remove unnecessary cast of a constant 1 in a subtract.

Pretty sure this will automatically promoted to match the type of the other operand of the subtract. There's plenty of other similar code around here without this cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309653 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/MathExtras.h