projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be7ae66
)
[APFloat] Fix APFloat::getExactInverse when the input is nullptr. This is a regressio...
author
Tim Shen
<timshen91@gmail.com>
Wed, 26 Oct 2016 23:31:41 +0000
(23:31 +0000)
committer
Tim Shen
<timshen91@gmail.com>
Wed, 26 Oct 2016 23:31:41 +0000
(23:31 +0000)
Reviewers: kbarton, echristo, iteratee, eugenis
Subscribers: llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D26017
llvm-svn: 285256
llvm/include/llvm/ADT/APFloat.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/APFloat.h
b/llvm/include/llvm/ADT/APFloat.h
index
f809065
..
c44696d
100644
(file)
--- 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);