Remove implicit TypeSize to uint64_t conversion
Open
code-cleanup
llvm:ir
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
TypeSize currently has an implicit conversion to integer, which will assert if the type is scalable. This conversion is discouraged, but not formally deprecated, so it's easy to accidentally use it and cause runtime errors if scalable vectors are used. We should remove this conversion in favor of getFixedValue() and getKnownMinValue().
Contributor guide
Assessment
This issue has not been assessed yet.