diff options
author | Charles Davis <cdavis@mines.edu> | 2012-05-28 03:54:22 +0000 |
---|---|---|
committer | Charles Davis <cdavis@mines.edu> | 2012-05-28 03:54:22 +0000 |
commit | ee855f06e79c7b6115ca813cffa0fc18da5b8d2a (patch) | |
tree | 6128f049f5bfe388d6878fc02868c38e446fd9a1 /clang/lib/AST/MicrosoftMangle.cpp | |
parent | f16084723ce9ef03a03bc3465eca3df2e6301df7 (diff) | |
download | bcm5719-llvm-ee855f06e79c7b6115ca813cffa0fc18da5b8d2a.tar.gz bcm5719-llvm-ee855f06e79c7b6115ca813cffa0fc18da5b8d2a.zip |
Fix Lang's fix. This should fix the tests for +Asserts builds.
llvm-svn: 157561
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r-- | clang/lib/AST/MicrosoftMangle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |