[libc-commits] [libc] 1948acb - [libc][obvious] Add back the accidentally removed MPFRNumber destructor.
Siva Chandra Reddy via libc-commits
libc-commits at lists.llvm.org
Tue Aug 25 21:58:48 PDT 2020
Author: Siva Chandra Reddy
Date: 2020-08-25T21:57:46-07:00
New Revision: 1948acb61b1d900b43fa457b3517de2d7beacd63
URL: https://github.com/llvm/llvm-project/commit/1948acb61b1d900b43fa457b3517de2d7beacd63
DIFF: https://github.com/llvm/llvm-project/commit/1948acb61b1d900b43fa457b3517de2d7beacd63.diff
LOG: [libc][obvious] Add back the accidentally removed MPFRNumber destructor.
Added:
Modified:
libc/utils/MPFRWrapper/MPFRUtils.cpp
Removed:
################################################################################
diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp
index 86882d05cc39..1ee5cb1cefce 100644
--- a/libc/utils/MPFRWrapper/MPFRUtils.cpp
+++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp
@@ -70,6 +70,10 @@ class MPFRNumber {
mpfr_set(value, other.value, MPFR_RNDN);
}
+ ~MPFRNumber() {
+ mpfr_clear(value);
+ }
+
MPFRNumber &operator=(const MPFRNumber &rhs) {
mpfr_set(value, rhs.value, MPFR_RNDN);
return *this;
More information about the libc-commits
mailing list