From 1b8dfcbaaa6a0eae28b94d29cd71e6463d6304d5 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 1 Mar 2007 23:30:25 +0000 Subject: Combine two lines that can be. llvm-svn: 34818 --- llvm/lib/Support/APInt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index da8e77a7a0e..9b000da0ee3 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/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; -- cgit v1.2.3