Fix Lang's fix. This should fix the tests for +Asserts builds.
authorCharles Davis <cdavis@mines.edu>
Mon, 28 May 2012 03:54:22 +0000 (03:54 +0000)
committerCharles Davis <cdavis@mines.edu>
Mon, 28 May 2012 03:54:22 +0000 (03:54 +0000)
llvm-svn: 157561

clang/lib/AST/MicrosoftMangle.cpp

index c2811fb..feb1fa3 100644 (file)
@@ -317,7 +317,7 @@ void MicrosoftCXXNameMangler::mangleNumber(const llvm::APSInt &Value) {
     char Encoding[64];
     char *EndPtr = Encoding+sizeof(Encoding);
     char *CurPtr = EndPtr;
-    llvm::APSInt NibbleMask(Value.getBitWidth());
+    llvm::APSInt NibbleMask(Value.getBitWidth(), Value.isUnsigned());
     NibbleMask = 0xf;
     for (int i = 0, e = Value.getActiveBits() / 4; i != e; ++i) {
       *--CurPtr = 'A' + Value.And(NibbleMask).lshr(i*4).getLimitedValue(0xf);