[llvm] r302815 - [APInt] Fix typo in comment. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 10:57:44 PDT 2017


Author: ctopper
Date: Thu May 11 12:57:43 2017
New Revision: 302815

URL: http://llvm.org/viewvc/llvm-project?rev=302815&view=rev
Log:
[APInt] Fix typo in comment. NFC

Modified:
    llvm/trunk/lib/Support/APInt.cpp

Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=302815&r1=302814&r2=302815&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Thu May 11 12:57:43 2017
@@ -1138,7 +1138,7 @@ APInt APInt::multiplicativeInverse(const
     return APInt(BitWidth, 0);
 
   // The next-to-last t is the multiplicative inverse.  However, we are
-  // interested in a positive inverse. Calcuate a positive one from a negative
+  // interested in a positive inverse. Calculate a positive one from a negative
   // one if necessary. A simple addition of the modulo suffices because
   // abs(t[i]) is known to be less than *this/2 (see the link above).
   return t[i].isNegative() ? t[i] + modulo : t[i];




More information about the llvm-commits mailing list