projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f160847
)
Fix Lang's fix. This should fix the tests for +Asserts builds.
author
Charles Davis
<cdavis@mines.edu>
Mon, 28 May 2012 03:54:22 +0000
(
03:54
+0000)
committer
Charles Davis
<cdavis@mines.edu>
Mon, 28 May 2012 03:54:22 +0000
(
03:54
+0000)
llvm-svn: 157561
clang/lib/AST/MicrosoftMangle.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/MicrosoftMangle.cpp
b/clang/lib/AST/MicrosoftMangle.cpp
index
c2811fb
..
feb1fa3
100644
(file)
--- 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);