Commit 18997b5
authored
[ADT] Fix a bug in DoubleAPFloat::frexp (llvm#161625)
Without this patch, we call APFloat::makeQuiet() in frexp like so:
Quiet.getFirst().makeQuiet();
The problem is that makeQuiet returns a new value instead of modifying
"*this" in place, so we end up discarding the newly returned value.
This patch fixes the problem by assigning the result back to
Quiet.getFirst().
We should put [[nodiscard]] on APFloat::makeQuiet, but I'll do that in
another patch.1 parent c2ef022 commit 18997b5
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5857 | 5857 | | |
5858 | 5858 | | |
5859 | 5859 | | |
5860 | | - | |
| 5860 | + | |
5861 | 5861 | | |
5862 | 5862 | | |
5863 | 5863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10176 | 10176 | | |
10177 | 10177 | | |
10178 | 10178 | | |
| 10179 | + | |
| 10180 | + | |
| 10181 | + | |
| 10182 | + | |
| 10183 | + | |
| 10184 | + | |
| 10185 | + | |
10179 | 10186 | | |
0 commit comments