[PATCH] D140263: [NFC] Vastly simplifies TypeSize
Sergei Barannikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 18 08:24:01 PST 2022
barannikov88 added inline comments.
================
Comment at: llvm/include/llvm/Support/TypeSize.h:103
public:
- using ScalarTy = typename LinearPolyBaseTypeTraits<LeafTy>::ScalarTy;
- static constexpr auto Dimensions = LinearPolyBaseTypeTraits<LeafTy>::Dimensions;
- static_assert(Dimensions != std::numeric_limits<unsigned>::max(),
- "Dimensions out of range");
+ using ScalarTy = ScalarT;
----------------
Looks redundant.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140263/new/
https://reviews.llvm.org/D140263
More information about the llvm-commits
mailing list