diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 23:30:25 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 23:30:25 +0000 |
commit | 295e40aa5ca771c2841d30332d7b4266fb306d6f (patch) | |
tree | a70b1b28498eadf09efd894d16157d562890137e /lib/Support/APInt.cpp | |
parent | dbf6d37b0b45736add065def22fc44f10e7f4146 (diff) |
Combine two lines that can be.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APInt.cpp')
-rw-r--r-- | lib/Support/APInt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index da8e77a7a0..9b000da0ee 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -943,8 +943,7 @@ APInt &APInt::sext(uint32_t width) { VAL |= mask; else pVal[wordsBefore-1] |= mask; - clearUnusedBits(); - return *this; + return clearUnusedBits(); } uint64_t mask = wordBits == 0 ? 0 : ~0ULL << wordBits; |