Skip to content

Commit 6ca98dc

Browse files
author
Gabor Horvath
committed
[cxx-interop] Fix compilation failure in rebranch
It looks like in the latest version of clang needs parameters to be named for the lifetimebound attribute to be applicable. rdar://151918181
1 parent d49dd18 commit 6ca98dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Interop/Cxx/class/nonescapable-lifetimebound.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ View getViewFromEither(View view1 [[clang::lifetimebound]], View view2 [[clang::
7373
struct SWIFT_NONESCAPABLE TestAnnotationTranslation {
7474
TestAnnotationTranslation() : member(nullptr) {}
7575
TestAnnotationTranslation(const int *p [[clang::lifetimebound]]) : member(p) {}
76-
TestAnnotationTranslation(const TestAnnotationTranslation& [[clang::lifetimebound]]) = default;
76+
TestAnnotationTranslation(const TestAnnotationTranslation& other[[clang::lifetimebound]]) = default;
7777
private:
7878
const int *member;
7979
};

0 commit comments

Comments
 (0)