Skip to content

Commit 85c344b

Browse files
committed
ClangImporter: Adjust references to renamed clang::LifetimeCaptureByAttr cases
See llvm/llvm-project#142195
1 parent 1a0e390 commit 85c344b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4219,14 +4219,14 @@ namespace {
42194219
for (auto param : attr->params()) {
42204220
// FIXME: Swift assumes no escaping to globals. We should diagnose
42214221
// this.
4222-
if (param == clang::LifetimeCaptureByAttr::GLOBAL ||
4223-
param == clang::LifetimeCaptureByAttr::UNKNOWN ||
4224-
param == clang::LifetimeCaptureByAttr::INVALID)
4222+
if (param == clang::LifetimeCaptureByAttr::Global ||
4223+
param == clang::LifetimeCaptureByAttr::Unknown ||
4224+
param == clang::LifetimeCaptureByAttr::Invalid)
42254225
continue;
42264226

42274227
paramHasAnnotation[idx] = true;
42284228
if (isa<clang::CXXMethodDecl>(decl) &&
4229-
param == clang::LifetimeCaptureByAttr::THIS) {
4229+
param == clang::LifetimeCaptureByAttr::This) {
42304230
auto [it, inserted] = inheritedArgDependences.try_emplace(
42314231
result->getSelfIndex(), SmallBitVector(dependencyVecSize));
42324232
it->second[idx] = true;

0 commit comments

Comments
 (0)