We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4c36e commit e904e24Copy full SHA for e904e24
lib/AST/Attr.cpp
@@ -1949,8 +1949,8 @@ SPIAccessControlAttr::create(ASTContext &context,
1949
1950
SPIAccessControlAttr *SPIAccessControlAttr::clone(ASTContext &C,
1951
bool implicit) const {
1952
- auto *attr = new (C) SPIAccessControlAttr(
1953
- implicit ? SourceLoc() : AtLoc, implicit ? SourceRange() : getRange(),
+ auto *attr = SPIAccessControlAttr::create(
+ C, implicit ? SourceLoc() : AtLoc, implicit ? SourceRange() : getRange(),
1954
getSPIGroups());
1955
attr->setImplicit(implicit);
1956
return attr;
0 commit comments