summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APSInt.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2007-08-02 06:05:19 +0000
committerAnders Carlsson <andersca@mac.com>2007-08-02 06:05:19 +0000
commitbfbfcdafbeb70d45a7fb9c983dbd724775c1281a (patch)
treeb2a43c270e6ee7d94793d19825c8688fe637e94f /include/llvm/ADT/APSInt.h
parent7ccd9ec4f40d1cdf740c98dab8e212943a4b4863 (diff)
downloadllvm-bfbfcdafbeb70d45a7fb9c983dbd724775c1281a.tar.gz
llvm-bfbfcdafbeb70d45a7fb9c983dbd724775c1281a.tar.bz2
llvm-bfbfcdafbeb70d45a7fb9c983dbd724775c1281a.tar.xz
Fix bug spotted by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APSInt.h')
-rw-r--r--include/llvm/ADT/APSInt.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h
index a2f0321c8b..7e515da704 100644
--- a/include/llvm/ADT/APSInt.h
+++ b/include/llvm/ADT/APSInt.h
@@ -85,17 +85,17 @@ public:
APSInt& extend(uint32_t width) {
if (IsUnsigned)
- *this = zext(width);
+ zext(width);
else
- *this = sext(width);
+ sext(width);
return *this;
}
APSInt& extOrTrunc(uint32_t width) {
if (IsUnsigned)
- *this = zextOrTrunc(width);
+ zextOrTrunc(width);
else
- *this = sextOrTrunc(width);
+ sextOrTrunc(width);
return *this;
}