-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Driver] Remove unparsed range code, move range-based tests into a new directory, & misc. driver cleanups #28543
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
davidungar
merged 2 commits into
swiftlang:master
from
davidungar:ranges-for-faster-dependents
Dec 4, 2019
Merged
[Driver] Remove unparsed range code, move range-based tests into a new directory, & misc. driver cleanups #28543
davidungar
merged 2 commits into
swiftlang:master
from
davidungar:ranges-for-faster-dependents
Dec 4, 2019
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@swift-ci please smoke test |
fb23650
to
3d3507b
Compare
@swift-ci please smoke test |
I believe that this broke the windows build: |
compnerd
added a commit
to compnerd/apple-swift
that referenced
this pull request
Dec 4, 2019
Repair the VS2017 build after swiftlang#28543. It would fail to convert the dependency set's keys into a vector of StringRefs: ``` error C2678: binary '*': no operator found which takes a left-hand operand of type 'const _Iter' (or there is no acceptable conversion) with [ _Iter=llvm::StringMapKeyIterator<char> ] C:\agent\_work\2\s\toolchain\llvm\include\llvm/ADT/StringMap.h(549): note: could be 'llvm::StringRef &llvm::StringMapKeyIterator<ValueTy>::operator *(void)' with [ ValueTy=char ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\\include\xmemory(217): note: while trying to match the argument list '(const _Iter)' with [ _Iter=llvm::StringMapKeyIterator<char> ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\\include\vector(1823): note: see reference to function template instantiation '_FwdIt *std::_Uninitialized_copy<_Iter,llvm::StringRef*,std::allocator<_Ty>>(const _InIt,const _InIt,_FwdIt,_Alloc &)' being compiled with [ _FwdIt=llvm::StringRef *, _Iter=llvm::StringMapKeyIterator<char>, _Ty=llvm::StringRef, _InIt=llvm::StringMapKeyIterator<char>, _Alloc=std::allocator<llvm::StringRef> ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\\include\vector(708): note: see reference to function template instantiation 'llvm::StringRef *std::vector<llvm::StringRef,std::allocator<_Ty>>::_Ucopy<_Iter>(_Iter,_Iter,llvm::StringRef *)' being compiled with [ _Ty=llvm::StringRef, _Iter=llvm::StringMapKeyIterator<char> ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\\include\vector(708): note: see reference to function template instantiation 'llvm::StringRef *std::vector<llvm::StringRef,std::allocator<_Ty>>::_Ucopy<_Iter>(_Iter,_Iter,llvm::StringRef *)' being compiled with [ _Ty=llvm::StringRef, _Iter=llvm::StringMapKeyIterator<char> ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\\include\vector(723): note: see reference to function template instantiation 'void std::vector<llvm::StringRef,std::allocator<_Ty>>::_Range_construct_or_tidy<_Iter>(_Iter,_Iter,std::forward_iterator_tag)' being compiled with [ _Ty=llvm::StringRef, _Iter=llvm::StringMapKeyIterator<char> ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\\include\vector(723): note: see reference to function template instantiation 'void std::vector<llvm::StringRef,std::allocator<_Ty>>::_Range_construct_or_tidy<_Iter>(_Iter,_Iter,std::forward_iterator_tag)' being compiled with [ _Ty=llvm::StringRef, _Iter=llvm::StringMapKeyIterator<char> ] C:\agent\_work\2\s\toolchain\swift\lib\Driver\Compilation.cpp(1571): note: see reference to function template instantiation 'std::vector<llvm::StringRef,std::allocator<_Ty>>::vector<IteratorT,void>(_Iter,_Iter,const _Alloc &)' being compiled with [ _Ty=llvm::StringRef, IteratorT=llvm::StringMapKeyIterator<char>, _Iter=llvm::StringMapKeyIterator<char>, _Alloc=std::allocator<llvm::StringRef> ] C:\agent\_work\2\s\toolchain\swift\lib\Driver\Compilation.cpp(1571): note: see reference to function template instantiation 'std::vector<llvm::StringRef,std::allocator<_Ty>>::vector<IteratorT,void>(_Iter,_Iter,const _Alloc &)' being compiled with [ _Ty=llvm::StringRef, IteratorT=llvm::StringMapKeyIterator<char>, _Iter=llvm::StringMapKeyIterator<char>, _Alloc=std::allocator<llvm::StringRef> ] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\\include\xmemory(217): error C2100: illegal indirection C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\\include\xmemory(217): error C2062: type 'unknown-type' unexpected ``` Attempt to make it more explicit with a `std::copy`.
drodriguez
added a commit
that referenced
this pull request
Dec 4, 2019
Driver: fix the Windows build after #28543
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.