[cfe-commits] r157561 - /cfe/trunk/lib/AST/MicrosoftMangle.cpp

Charles Davis cdavis at mines.edu
Sun May 27 20:54:22 PDT 2012


Author: cdavis
Date: Sun May 27 22:54:22 2012
New Revision: 157561

URL: http://llvm.org/viewvc/llvm-project?rev=157561&view=rev
Log:
Fix Lang's fix. This should fix the tests for +Asserts builds.

Modified:
    cfe/trunk/lib/AST/MicrosoftMangle.cpp

Modified: cfe/trunk/lib/AST/MicrosoftMangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/MicrosoftMangle.cpp?rev=157561&r1=157560&r2=157561&view=diff
==============================================================================
--- cfe/trunk/lib/AST/MicrosoftMangle.cpp (original)
+++ cfe/trunk/lib/AST/MicrosoftMangle.cpp Sun May 27 22:54:22 2012
@@ -317,7 +317,7 @@
     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);





More information about the cfe-commits mailing list