We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195a529 commit af7a421Copy full SHA for af7a421
clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
@@ -241,8 +241,8 @@ class MinimizedVFSFile final : public llvm::vfs::File {
241
llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> MinimizedVFSFile::create(
242
EntryRef Entry, ExcludedPreprocessorDirectiveSkipMapping *PPSkipMappings) {
243
if (Entry.isDirectory())
244
- return llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>(
245
- std::make_error_code(std::errc::is_a_directory));
+ return std::make_error_code(std::errc::is_a_directory);
+
246
llvm::ErrorOr<StringRef> Contents = Entry.getContents();
247
if (!Contents)
248
return Contents.getError();
0 commit comments