[clang] Do not crash for unsupported fixed point to floating point conversion
- Fixed point to floating point conversion is unimplemented. - If one of the operands has a floating type and the other operand has a fixed-point type, the function handleFloatConversion() is called because one of the operands has a floating type, but we do not handle fixed point type in this function (Implementation of fixed point to floating point conversion is missing), due to this compiler crashes. In order to avoid compiler crash, when one of the operands has a floating type and the other operand has a fixed-point type, return NULL. - FIXME: Implementation of fixed point to floating point conversion. - I am going to resolve FIXME in followup patches. - Add the test case. Reviewed By: ebevhan Differential Revision: https://reviews.llvm.org/D81904
parent
956582aa
Please register or sign in to comment