diff options
-rw-r--r-- | include/llvm/Constants.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index d6529c7d5f..32898894c5 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -263,6 +263,9 @@ public: bool isExactlyValue(const APFloat& V) const; bool isExactlyValue(double V) const { + // convert is not supported on this type + if (&Val.getSemantics() == &APFloat::PPCDoubleDouble) + return false; APFloat FV(V); FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven); return isExactlyValue(FV); |