Skip to content

[cxx-interop] Fix SwiftCompilerSources hosttools build #67775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

egorzhdan
Copy link
Contributor

This fixes a compiler error when building SwiftCompilerSources in hosttools mode with a recent Xcode.

<unknown>:0: error: calling a private constructor of class 'clang::StmtIterator'
swift/llvm-project/clang/include/clang/AST/StmtIterator.h:137:3: note: declared private here
  StmtIterator(const StmtIteratorBase &RHS)
  ^

rdar://113514872

This fixes a compiler error when building SwiftCompilerSources in hosttools mode with a recent Xcode.

```
<unknown>:0: error: calling a private constructor of class 'clang::StmtIterator'
swift/llvm-project/clang/include/clang/AST/StmtIterator.h:137:3: note: declared private here
  StmtIterator(const StmtIteratorBase &RHS)
  ^
```

rdar://113514872
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Aug 7, 2023
@egorzhdan egorzhdan requested review from zoecarver and hyp as code owners August 7, 2023 19:13
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan egorzhdan merged commit aecc10e into main Aug 8, 2023
@egorzhdan egorzhdan deleted the egorzhdan/clang-stmt-iterator branch August 8, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants