From 8178a55b25704e150edf4c595a4283bc757c8fb8 Mon Sep 17 00:00:00 2001 From: Yang Fan Date: Wed, 3 Feb 2021 10:21:45 +0800 Subject: [PATCH] [VFS] Fix Wreturn-type gcc warning (NFC) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | } | ^ ``` --- llvm/include/llvm/Support/VirtualFileSystem.h | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/include/llvm/Support/VirtualFileSystem.h b/llvm/include/llvm/Support/VirtualFileSystem.h index b718dba..d7abd1f 100644 --- a/llvm/include/llvm/Support/VirtualFileSystem.h +++ b/llvm/include/llvm/Support/VirtualFileSystem.h @@ -678,6 +678,7 @@ public: case EK_Directory: return false; } + llvm_unreachable("invalid entry kind"); } }; -- 2.7.4