aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorFrancesco Petrogalli <francesco.petrogalli@arm.com>2020-08-17 22:48:15 +0000
committerFrancesco Petrogalli <francesco.petrogalli@arm.com>2020-08-19 16:26:44 +0000
commit264afb9e6aebc98c353644dd0700bec808501cab (patch)
tree810b43842776e7b69e7ebb76a7f4d58ac099942c /llvm/lib/CodeGen/TargetLoweringBase.cpp
parentd29d1e2ffd61f450b4392d2dab8060e54d040fcf (diff)
downloadllvm-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.cpp2
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