diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-01-19 17:42:33 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-01-19 17:42:33 +0000 |
commit | 4bd47877859b19c7a12cd10eff03533b329740e1 (patch) | |
tree | e19eebe5bc47fb1d17329643dd68d2b64f5036b2 /lib/Support | |
parent | bf22bc66b9969fb6c119569e89c79179dcd557c0 (diff) | |
download | external_llvm-4bd47877859b19c7a12cd10eff03533b329740e1.zip external_llvm-4bd47877859b19c7a12cd10eff03533b329740e1.tar.gz external_llvm-4bd47877859b19c7a12cd10eff03533b329740e1.tar.bz2 |
Fix typo, sentence fragment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/APInt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 462d3ed..e79abb2 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -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 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 @@ 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)); } |