diff options
| -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); |

