forked from OSchip/llvm-project
[VFS] Fix Wreturn-type gcc warning (NFC)
GCC warning: ``` In file included from /llvm-project/llvm/lib/Support/VirtualFileSystem.cpp:13: /llvm-project/llvm/include/llvm/Support/VirtualFileSystem.h: In static member function ‘static bool llvm::vfs::RedirectingFileSystem::RemapEntry::classof(const llvm::vfs::RedirectingFileSystem::Entry*)’: /llvm-project/llvm/include/llvm/Support/VirtualFileSystem.h:681:5: warning: control reaches end of non-void function [-Wreturn-type] 681 | } | ^ ```
This commit is contained in:
parent
b0869a7d72
commit
8178a55b25
|
@ -678,6 +678,7 @@ public:
|
|||
case EK_Directory:
|
||||
return false;
|
||||
}
|
||||
llvm_unreachable("invalid entry kind");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue