Combine two lines that can be.
authorReid Spencer <rspencer@reidspencer.com>
Thu, 1 Mar 2007 23:30:25 +0000 (23:30 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 1 Mar 2007 23:30:25 +0000 (23:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34818 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/APInt.cpp

index da8e77a7a0e7614851ee25c5ca8270062974c95d..9b000da0ee39eab2ba5fecae1a07182728055d19 100644 (file)
@@ -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;