aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APFixedPoint.cpp
diff options
context:
space:
mode:
authorBevin Hansson <bevin.hansson@ericsson.com>2020-08-04 12:55:38 +0200
committerBevin Hansson <bevin.hansson@ericsson.com>2020-08-20 10:29:29 +0200
commit1e7ec4842c1a8b0c686e5674e215012867938a8d (patch)
tree1ebf9ae62047884192170f17b41bf30424067f84 /llvm/lib/Support/APFixedPoint.cpp
parent33f574672f40fb94c818901208824303350df55e (diff)
downloadllvm-1e7ec4842c1a8b0c686e5674e215012867938a8d.zip
llvm-1e7ec4842c1a8b0c686e5674e215012867938a8d.tar.gz
llvm-1e7ec4842c1a8b0c686e5674e215012867938a8d.tar.bz2
[AST] Get field size in chars rather than bits in RecordLayoutBuilder.
In D79719, LayoutField was refactored to fetch the size of field types in bits and then convert to chars, rather than fetching them in chars directly. This is not ideal, since it makes the calculations char size dependent, and breaks for sizes that are not a multiple of the char size. This patch changes it to use getTypeInfoInChars instead of getTypeInfo. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D85191
Diffstat (limited to 'llvm/lib/Support/APFixedPoint.cpp')
0 files changed, 0 insertions, 0 deletions