Fix Lang's fix. This should fix the tests for +Asserts builds.

llvm-svn: 157561
This commit is contained in:
Charles Davis 2012-05-28 03:54:22 +00:00
parent f16084723c
commit ee855f06e7
1 changed files with 1 additions and 1 deletions

View 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);