forked from OSchip/llvm-project
Fix Lang's fix. This should fix the tests for +Asserts builds.
llvm-svn: 157561
This commit is contained in:
parent
f16084723c
commit
ee855f06e7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue