DianQK wrote: To avoid this problem from happening again, I think we should replace the double and float constructors with class methods at `APFloat`. https://github.com/llvm/llvm-project/pull/98860