From 104e51f30fdf42b1f594a1be20de1c8673088c50 Mon Sep 17 00:00:00 2001 From: Charles Davis Date: Mon, 28 May 2012 03:54:22 +0000 Subject: [PATCH] Fix Lang's fix. This should fix the tests for +Asserts builds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157561 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/MicrosoftMangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AST/MicrosoftMangle.cpp b/lib/AST/MicrosoftMangle.cpp index c2811fb8ab..feb1fa3083 100644 --- a/lib/AST/MicrosoftMangle.cpp +++ b/lib/AST/MicrosoftMangle.cpp @@ -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); -- 2.40.0