diff options
| author | Tim Shen <timshen91@gmail.com> | 2016-10-26 23:31:41 +0000 |
|---|---|---|
| committer | Tim Shen <timshen91@gmail.com> | 2016-10-26 23:31:41 +0000 |
| commit | 752775235387984a392b94f399769c339c19f84e (patch) | |
| tree | e9a881c5dc151467e8a6f05cdd320f478fb4bd68 /llvm | |
| parent | be7ae6684f0937b1c922ecbbf03c3705846bced9 (diff) | |
| download | bcm5719-llvm-752775235387984a392b94f399769c339c19f84e.tar.gz bcm5719-llvm-752775235387984a392b94f399769c339c19f84e.zip | |
[APFloat] Fix APFloat::getExactInverse when the input is nullptr. This is a regression introduced by r285105.
Reviewers: kbarton, echristo, iteratee, eugenis
Subscribers: llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D26017
llvm-svn: 285256
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/ADT/APFloat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/APFloat.h b/llvm/include/llvm/ADT/APFloat.h index f809065a5ed..c44696decdc 100644 --- a/llvm/include/llvm/ADT/APFloat.h +++ b/llvm/include/llvm/ADT/APFloat.h @@ -855,7 +855,7 @@ public: } bool getExactInverse(APFloat *inv) const { - return IEEE.getExactInverse(&inv->IEEE); + return IEEE.getExactInverse(inv ? &inv->IEEE : nullptr); } friend hash_code hash_value(const APFloat &Arg); |

