[llvm-commits] [llvm] r62512 - /llvm/trunk/lib/Support/APInt.cpp
Nick Lewycky
nicholas at mxc.ca
Mon Jan 19 09:42:34 PST 2009
Author: nicholas
Date: Mon Jan 19 11:42:33 2009
New Revision: 62512
URL: http://llvm.org/viewvc/llvm-project?rev=62512&view=rev
Log:
Fix typo, sentence fragment.
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=62512&r1=62511&r2=62512&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Mon Jan 19 11:42:33 2009
@@ -1085,7 +1085,7 @@
return APInt(BitWidth, 0);
// If none of the bits are shifted out, the result is *this. This avoids
- // issues with shifting byt he 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 @@
/// 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));
}
More information about the llvm-commits
mailing list