diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AST/MicrosoftMangle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/MicrosoftMangle.cpp b/lib/AST/MicrosoftMangle.cpp index feb1fa3083..753b8174fb 100644 --- a/lib/AST/MicrosoftMangle.cpp +++ b/lib/AST/MicrosoftMangle.cpp @@ -309,8 +309,8 @@ void MicrosoftCXXNameMangler::mangleNumber(const llvm::APSInt &Value) { return; } if (Value.uge(1) && Value.ule(10)) - (Value-llvm::APSInt(llvm::APInt(Value.getBitWidth(), 1, Value.isSigned()))).print(Out, - false); + (Value-llvm::APSInt(llvm::APInt(Value.getBitWidth(), 1, Value.isSigned()), + Value.isUnsigned())).print(Out, false); else { // We have to build up the encoding in reverse order, so it will come // out right when we write it out. |