It is safe to assume that the TypeSize associated to scalar types has
a fixed size.
This avoids an implicit cast of TypeSize to integer inside
Type::getScalarSizeInBits(), as such implicit cast is deprecated.
Differential D76892
[llvm][Type] Return fixed size for scalar types. [NFC] fpetrogalli on Mar 26 2020, 3:52 PM. Authored by
Details It is safe to assume that the TypeSize associated to scalar types has This avoids an implicit cast of TypeSize to integer inside
Diff Detail
Unit Tests Event Timeline |
"It is safe"?