[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:41:06 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL285256: [APFloat] Fix APFloat::getExactInverse when the input is nullptr. This is a… (authored by timshen).
Changed prior to commit:
https://reviews.llvm.org/D26017?vs=75964&id=75967#toc
Repository:
rL LLVM
https://reviews.llvm.org/D26017
Files:
llvm/trunk/include/llvm/ADT/APFloat.h
Index: llvm/trunk/include/llvm/ADT/APFloat.h
===================================================================
--- llvm/trunk/include/llvm/ADT/APFloat.h
+++ llvm/trunk/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.75967.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161026/64caf2cb/attachment.bin>
More information about the llvm-commits
mailing list