diff options
-rw-r--r-- | include/llvm/ADT/APInt.h | 2 |
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); |