mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -182,7 +182,7 @@ inline void set_union_for_each(const Container1 &C1, const Container2 &C2,
|
||||
|
||||
/// Takes an iterator and an iterator pointing to the end of the iterator range.
|
||||
/// If the iterator already points to the end of its range, simply return it,
|
||||
/// otherwise return the the next element.
|
||||
/// otherwise return the next element.
|
||||
template <typename Iterator>
|
||||
inline Iterator next_or_end(Iterator it, Iterator end) {
|
||||
return (it == end) ? end : std::next(it);
|
||||
|
||||
@@ -40,7 +40,7 @@ class SourceManager {
|
||||
int LineOffset;
|
||||
};
|
||||
std::map<const char *, VirtualFile> VirtualFiles;
|
||||
mutable std::pair<const char *, const VirtualFile*> CachedVFile = {};
|
||||
mutable std::pair<const char *, const VirtualFile*> CachedVFile = {nullptr, nullptr};
|
||||
|
||||
public:
|
||||
llvm::SourceMgr &getLLVMSourceMgr() {
|
||||
|
||||
Reference in New Issue
Block a user