aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-24 22:50:43 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-24 22:50:43 +0000
commit013263f7b008e2fca293cf2720205f3f6db37dc2 (patch)
tree64fc5ec37dc3024ce0d529631865bae837876b64
parent64f5c6c35759288f4a87da20fdd5d97ec8817f71 (diff)
Get the signs in the right place!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35307 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/APInt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 76a852b1a0..90564ef3f8 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -568,7 +568,7 @@ public:
if (RHS.isNegative())
return -((-(*this)).urem(-RHS));
else
- return -(-(*this)).urem(RHS);
+ return -((-(*this)).urem(RHS));
else if (RHS.isNegative())
return this->urem(-RHS);
return this->urem(RHS);