aboutsummaryrefslogtreecommitdiff
path: root/libc/utils
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2020-08-25 21:57:46 -0700
committerSiva Chandra Reddy <sivachandra@google.com>2020-08-25 21:57:46 -0700
commit1948acb61b1d900b43fa457b3517de2d7beacd63 (patch)
tree383d521656f30bc5825a5b7606667963b9890388 /libc/utils
parent3f4674a5577dcc63a846d33f61e9bd95e388223d (diff)
downloadllvm-1948acb61b1d900b43fa457b3517de2d7beacd63.zip
llvm-1948acb61b1d900b43fa457b3517de2d7beacd63.tar.gz
llvm-1948acb61b1d900b43fa457b3517de2d7beacd63.tar.bz2
[libc][obvious] Add back the accidentally removed MPFRNumber destructor.
Diffstat (limited to 'libc/utils')
-rw-r--r--libc/utils/MPFRWrapper/MPFRUtils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp
index 86882d0..1ee5cb1 100644
--- a/libc/utils/MPFRWrapper/MPFRUtils.cpp
+++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp
@@ -70,6 +70,10 @@ public:
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;