summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2012-05-28 03:54:22 +0000
committerCharles Davis <cdavis@mines.edu>2012-05-28 03:54:22 +0000
commitee855f06e79c7b6115ca813cffa0fc18da5b8d2a (patch)
tree6128f049f5bfe388d6878fc02868c38e446fd9a1 /clang/lib/AST/MicrosoftMangle.cpp
parentf16084723ce9ef03a03bc3465eca3df2e6301df7 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud