[all-commits] [llvm/llvm-project] 4b3d94: [llvm][Type] Return fixed size for scalar types. [...
Francesco Petrogalli via All-commits
all-commits at lists.llvm.org
Fri Mar 27 15:24:21 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4b3d94051ca2cfc43f276c05f0619d22fc7deb87
https://github.com/llvm/llvm-project/commit/4b3d94051ca2cfc43f276c05f0619d22fc7deb87
Author: Francesco Petrogalli <francesco.petrogalli at arm.com>
Date: 2020-03-27 (Fri, 27 Mar 2020)
Changed paths:
M llvm/lib/IR/Type.cpp
Log Message:
-----------
[llvm][Type] Return fixed size for scalar types. [NFC]
Summary:
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.
Reviewers: efriedma, sdesmalen
Reviewed By: efriedma
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76892
More information about the All-commits
mailing list