summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 23:30:25 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 23:30:25 +0000
commit1b8dfcbaaa6a0eae28b94d29cd71e6463d6304d5 (patch)
treec585b6964b231c52cf89f7545e82555f857b1390 /llvm/lib/Support
parent1700b52b8b29632aa128f0039f47b323029b0585 (diff)
downloadbcm5719-llvm-1b8dfcbaaa6a0eae28b94d29cd71e6463d6304d5.tar.gz
bcm5719-llvm-1b8dfcbaaa6a0eae28b94d29cd71e6463d6304d5.zip
Combine two lines that can be.
llvm-svn: 34818
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/APInt.cpp3
1 files changed, 1 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud