[llvm-commits] [llvm] r40725 - /llvm/trunk/include/llvm/ADT/APSInt.h

Anders Carlsson andersca at mac.com
Wed Aug 1 23:05:20 PDT 2007


Author: andersca
Date: Thu Aug  2 01:05:19 2007
New Revision: 40725

URL: http://llvm.org/viewvc/llvm-project?rev=40725&view=rev
Log:
Fix bug spotted by Chris.

Modified:
    llvm/trunk/include/llvm/ADT/APSInt.h

Modified: llvm/trunk/include/llvm/ADT/APSInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APSInt.h?rev=40725&r1=40724&r2=40725&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/APSInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APSInt.h Thu Aug  2 01:05:19 2007
@@ -85,17 +85,17 @@
   
   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;
   }
   





More information about the llvm-commits mailing list