From 6b742cc48d91f35bfa98844d5add3655f33f8326 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 19 Aug 2020 09:39:44 -0700 Subject: [PATCH] [clang] Replace call to private ctor with ElementCount::getScalable (2/2) 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 48ed637..a9cab40 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -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: -- 2.7.4