projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
264afb9
)
[clang] Replace call to private ctor with ElementCount::getScalable
author
Jonas Devlieghere
<jonas@devlieghere.com>
Wed, 19 Aug 2020 16:34:57 +0000
(09:34 -0700)
committer
Jonas 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
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ASTContext.cpp
b/clang/lib/AST/ASTContext.cpp
index
c51629e
..
48ed637
100644
(file)
--- a/
clang/lib/AST/ASTContext.cpp
+++ b/
clang/lib/AST/ASTContext.cpp
@@
-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) \