Fix typo, sentence fragment.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 19 Jan 2009 17:42:33 +0000 (17:42 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 19 Jan 2009 17:42:33 +0000 (17:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62512 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/APInt.cpp

index 462d3ed8bdc9cb9c1388727f1dff77f54a896975..e79abb2aebab06c0bfc47cfcaac6f16db13ed4cd 100644 (file)
@@ -1085,7 +1085,7 @@ APInt APInt::lshr(uint32_t shiftAmt) const {
     return APInt(BitWidth, 0);
 
   // If none of the bits are shifted out, the result is *this. This avoids
-  // issues with shifting byhe size of the integer type, which produces 
+  // issues with shifting by the size of the integer type, which produces 
   // undefined results in the code below. This is also an optimization.
   if (shiftAmt == 0)
     return *this;
@@ -1133,7 +1133,7 @@ APInt APInt::lshr(uint32_t shiftAmt) const {
 /// Left-shift this APInt by shiftAmt.
 /// @brief Left-shift function.
 APInt APInt::shl(const APInt &shiftAmt) const {
-  // It's undefined behavior in C to shift by BitWidth or greater, but
+  // It's undefined behavior in C to shift by BitWidth or greater.
   return shl((uint32_t)shiftAmt.getLimitedValue(BitWidth));
 }