Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
Bob Wilson
2016-10-17 11:52:21 -07:00
222 changed files with 4965 additions and 4290 deletions

View File

@@ -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);

View File

@@ -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() {