[PATCH] D26017: [APFloat] Fix APFloat::getExactInverse when the input is nullptr. This is a regression introduced by r285105.
Tim Shen via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 16:33:21 PDT 2016
timshen created this revision.
timshen added reviewers: kbarton, echristo, iteratee, eugenis.
timshen added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.
https://reviews.llvm.org/D26017
Files:
llvm/include/llvm/ADT/APFloat.h
Index: llvm/include/llvm/ADT/APFloat.h
===================================================================
--- llvm/include/llvm/ADT/APFloat.h
+++ llvm/include/llvm/ADT/APFloat.h
@@ -855,7 +855,7 @@
}
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26017.75964.patch
Type: text/x-patch
Size: 419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161026/7e535a3a/attachment.bin>
More information about the llvm-commits
mailing list