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:
0814fcb
)
[clang] Replace call to private ctor with ElementCount::getScalable (2/2)
author
Jonas Devlieghere
<jonas@devlieghere.com>
Wed, 19 Aug 2020 16:39:44 +0000
(09:39 -0700)
committer
Jonas 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
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ASTContext.cpp
b/clang/lib/AST/ASTContext.cpp
index
48ed637
..
a9cab40
100644
(file)
--- 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: