From 295e40aa5ca771c2841d30332d7b4266fb306d6f Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 1 Mar 2007 23:30:25 +0000 Subject: [PATCH] Combine two lines that can be. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34818 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/APInt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index da8e77a7a0e..9b000da0ee3 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; -- 2.34.1