[clang] Replace call to private ctor with ElementCount::getScalable (2/2)
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Aug 2020 16:39:44 +0000 (09:39 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Aug 2020 16:40:46 +0000 (09:40 -0700)
Update the code for D86120 which made the constructors of `ElementCount`
private. Apparently I missed another instance in the macro just below.

clang/lib/AST/ASTContext.cpp

index 48ed637..a9cab40 100644 (file)
@@ -3718,7 +3718,7 @@ ASTContext::getBuiltinVectorTypeInfo(const BuiltinType *Ty) const {
    NUMVECTORS};
 
 #define SVE_ELTTY(ELTTY, ELTS, NUMVECTORS)                                     \
-  {ELTTY, llvm::ElementCount(ELTS, true), NUMVECTORS};
+  {ELTTY, llvm::ElementCount::getScalable(ELTS), NUMVECTORS};
 
   switch (Ty->getKind()) {
   default: