aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2020-08-19 17:13:28 +0000
committerMehdi Amini <joker.eph@gmail.com>2020-08-19 17:21:37 +0000
commit4fc56d70aadea9df88e7bf408e2e203dc79ff8e6 (patch)
tree2791bcb20c217fc0844f81d466845409ebcd457f /llvm/lib/CodeGen/TargetLoweringBase.cpp
parentd25b12bdc307264e353f1a3c4ccd65c0b45b2f86 (diff)
downloadllvm-4fc56d70aadea9df88e7bf408e2e203dc79ff8e6.zip
llvm-4fc56d70aadea9df88e7bf408e2e203dc79ff8e6.tar.gz
llvm-4fc56d70aadea9df88e7bf408e2e203dc79ff8e6.tar.bz2
Revert "[NFC][llvm] Make the contructors of `ElementCount` private."
This reverts commit 264afb9e6aebc98c353644dd0700bec808501cab. (and dependent 6b742cc48 and fc53bd610f) MLIR/Flang are broken.
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 868302a..63e55c9 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::getScalable(1))
+ if (VT.getVectorElementCount() == ElementCount(1, true))
report_fatal_error("Cannot legalize this vector");
// Try to widen vector elements until the element type is a power of two and