Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of FP-classify where the last arg fails to convert
The last argument of an FP-classify function was checked for vailidity as an expression, but we never ensured that the usual unary conversions/etc properly resulted in a valid value. Thus, when we got the value, it was null, so we had a null dereference. This patch instead fails out/marks the function call as invalid if the argument is incorrect. I DID consider just allowing it to continue, but the result was an extraneous error about how the last argument wasn't a float (in this case, it was an overload set). Fixes: llvm#107411
- Loading branch information