diff options
author | Francesco Petrogalli <francesco.petrogalli@arm.com> | 2020-08-17 22:48:15 +0000 |
---|---|---|
committer | Francesco Petrogalli <francesco.petrogalli@arm.com> | 2020-08-19 16:26:44 +0000 |
commit | 264afb9e6aebc98c353644dd0700bec808501cab (patch) | |
tree | 810b43842776e7b69e7ebb76a7f4d58ac099942c /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | d29d1e2ffd61f450b4392d2dab8060e54d040fcf (diff) | |
download | llvm-264afb9e6aebc98c353644dd0700bec808501cab.zip llvm-264afb9e6aebc98c353644dd0700bec808501cab.tar.gz llvm-264afb9e6aebc98c353644dd0700bec808501cab.tar.bz2 |
[NFC][llvm] Make the contructors of `ElementCount` private.
Differential Revision: https://reviews.llvm.org/D86120
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 63e55c9..868302a 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -866,7 +866,7 @@ TargetLoweringBase::getTypeConversion(LLVMContext &Context, EVT VT) const { if (NumElts == 1) return LegalizeKind(TypeScalarizeVector, EltVT); - if (VT.getVectorElementCount() == ElementCount(1, true)) + if (VT.getVectorElementCount() == ElementCount::getScalable(1)) report_fatal_error("Cannot legalize this vector"); // Try to widen vector elements until the element type is a power of two and |