Skip to content

Frontend: fix after #27464 #27618

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
Oct 11, 2019
Merged

Frontend: fix after #27464 #27618

merged 1 commit into from
Oct 11, 2019

Conversation

compnerd
Copy link
Member

try to invoke a std::unique_ptr<>'s copy constructor, which is deleted.
Either move the unique_ptr or pass along a nullptr. This should repair
the Windows build.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

try to invoke a std::unique_ptr<>'s copy constructor, which is deleted.
Either move the unique_ptr or pass along a nullptr.  This should repair
the Windows build.
@compnerd
Copy link
Member Author

@swift-ci please smoke test and merge

@compnerd
Copy link
Member Author

CC: @nkcsgexi

@swift-ci swift-ci merged commit db902a1 into swiftlang:master Oct 11, 2019
return ModuleBuffers(
std::move(*inputFileOrErr),
openModuleDoc(input).getValueOr(nullptr),
openModuleSourceInfo(input).getValueOr(nullptr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boo, this shouldn't formally do a copy. :-( Can we update LLVM_HAS_RVALUE_REFERENCE_THIS in Compiler.h instead? Or does MSVC still not have it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that MSVC does support rvalue reference this (VS2019 probably does, VS2017 is what Im worried about). LLVM_HAS_RVALUE_REFERENCE_THIS was removed (by JF) recently actually IIRC.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like they got re-added. Oh well.

apple/swift-llvm@4ed5b9a

@compnerd compnerd deleted the 27464 branch October 11, 2019 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants