aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 a2f0321..7e515da 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;
}