[clang] Replace call to private ctor with ElementCount::getScalable
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Aug 2020 16:34:57 +0000 (09:34 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Aug 2020 16:35:08 +0000 (09:35 -0700)
Update the code for D86120 which made the constructors of `ElementCount`
private.

clang/lib/AST/ASTContext.cpp

index c51629e..48ed637 100644 (file)
@@ -3714,7 +3714,7 @@ QualType ASTContext::getIncompleteArrayType(QualType elementType,
 ASTContext::BuiltinVectorTypeInfo
 ASTContext::getBuiltinVectorTypeInfo(const BuiltinType *Ty) const {
 #define SVE_INT_ELTTY(BITS, ELTS, SIGNED, NUMVECTORS)                          \
-  {getIntTypeForBitwidth(BITS, SIGNED), llvm::ElementCount(ELTS, true),        \
+  {getIntTypeForBitwidth(BITS, SIGNED), llvm::ElementCount::getScalable(ELTS), \
    NUMVECTORS};
 
 #define SVE_ELTTY(ELTTY, ELTS, NUMVECTORS)                                     \