Issue |
159290
|
Summary |
Remove implicit TypeSize to uint64_t conversion
|
Labels |
code-cleanup,
llvm:ir
|
Assignees |
|
Reporter |
nikic
|
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().
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs