From ee855f06e79c7b6115ca813cffa0fc18da5b8d2a Mon Sep 17 00:00:00 2001 From: Charles Davis Date: Mon, 28 May 2012 03:54:22 +0000 Subject: Fix Lang's fix. This should fix the tests for +Asserts builds. llvm-svn: 157561 --- clang/lib/AST/MicrosoftMangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/AST/MicrosoftMangle.cpp') diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index c2811fb8ab5..feb1fa30833 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/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); -- cgit v1.2.3