summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-01-19 17:42:33 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-01-19 17:42:33 +0000
commit030c450fdc47341607a543557f5e840645860d99 (patch)
treecd1ba565166eb04bdc9dbea6eee30935b47f4464 /llvm/lib
parentfaad4168f9739d3e3e981a057adb2b631dd77e1a (diff)
downloadbcm5719-llvm-030c450fdc47341607a543557f5e840645860d99.tar.gz
bcm5719-llvm-030c450fdc47341607a543557f5e840645860d99.zip
Fix typo, sentence fragment.
llvm-svn: 62512
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/APInt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 462d3ed8bdc..e79abb2aeba 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/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));
}
OpenPOWER on IntegriCloud