Unverified Commit 8e6db7e2 authored by Craig Topper's avatar Craig Topper Committed by GitHub
Browse files

[RISCV] Fix a crash from trying to truncate an FP type in lowerBuildV… (#67488)

…ectorOfConstants.

ComputeNumSignBits can return an answer for FP constants based on
bitcasting them to int.

Check for an integer type so we don't create an illegal truncate.

We could support this case with bitcasts, but I leave that to a separate
patch.
parent 5ffbdd9e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment