diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2020-08-19 17:13:28 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2020-08-19 17:21:37 +0000 |
commit | 4fc56d70aadea9df88e7bf408e2e203dc79ff8e6 (patch) | |
tree | 2791bcb20c217fc0844f81d466845409ebcd457f /llvm/unittests/IR/ConstantsTest.cpp | |
parent | d25b12bdc307264e353f1a3c4ccd65c0b45b2f86 (diff) | |
download | llvm-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/unittests/IR/ConstantsTest.cpp')
-rw-r--r-- | llvm/unittests/IR/ConstantsTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/IR/ConstantsTest.cpp b/llvm/unittests/IR/ConstantsTest.cpp index 5fb2d2d..f1c1c86 100644 --- a/llvm/unittests/IR/ConstantsTest.cpp +++ b/llvm/unittests/IR/ConstantsTest.cpp @@ -646,8 +646,8 @@ TEST(ConstantsTest, GetSplatValueRoundTrip) { Type *Int8Ty = Type::getInt8Ty(Context); for (unsigned Min : {1, 2, 8}) { - auto ScalableEC = ElementCount::getScalable(Min); - auto FixedEC = ElementCount::getFixed(Min); + ElementCount ScalableEC = {Min, true}; + ElementCount FixedEC = {Min, false}; for (auto EC : {ScalableEC, FixedEC}) { for (auto *Ty : {FloatTy, Int32Ty, Int8Ty}) { |