aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ConstantFold.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/IR/ConstantFold.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/IR/ConstantFold.cpp')
-rw-r--r--llvm/lib/IR/ConstantFold.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp
index e5c4250..2d3afca 100644
--- a/llvm/lib/IR/ConstantFold.cpp
+++ b/llvm/lib/IR/ConstantFold.cpp
@@ -919,8 +919,7 @@ Constant *llvm::ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
ArrayRef<int> Mask) {
auto *V1VTy = cast<VectorType>(V1->getType());
unsigned MaskNumElts = Mask.size();
- auto MaskEltCount =
- ElementCount::get(MaskNumElts, isa<ScalableVectorType>(V1VTy));
+ ElementCount MaskEltCount = {MaskNumElts, isa<ScalableVectorType>(V1VTy)};
Type *EltTy = V1VTy->getElementType();
// Undefined shuffle mask -> undefined value.