Fix msvc unittest build.

Looks like msvc has an asymmetrical operator ==.

llvm-svn: 210768
This commit is contained in:
Rafael Espindola
2014-06-12 11:35:17 +00:00
parent 3095b420f4
commit 1f24317d87
2 changed files with 26 additions and 22 deletions

View File

@@ -35,7 +35,7 @@ public:
std::map<std::string, vfs::Status>::iterator I =
FilesAndDirs.find(Path.str());
if (I == FilesAndDirs.end())
return make_error_code(std::errc::no_such_file_or_directory);
return std::make_error_code(std::errc::no_such_file_or_directory);
return I->second;
}
error_code openFileForRead(const Twine &Path,