From 4f35ca59d0fe1f0955d9e085e2c8ebd1bf27e421 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Thu, 19 May 2022 08:26:13 +0200 Subject: [PATCH] [clangd] Suppress warning: control reaches end of function --- clang-tools-extra/clangd/index/StdLib.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang-tools-extra/clangd/index/StdLib.cpp b/clang-tools-extra/clangd/index/StdLib.cpp index 378efedd0f2a..f00067229a86 100644 --- a/clang-tools-extra/clangd/index/StdLib.cpp +++ b/clang-tools-extra/clangd/index/StdLib.cpp @@ -118,6 +118,7 @@ llvm::StringRef getStdlibUmbrellaHeader(const LangOptions &LO) { })); return *UmbrellaC; } + llvm_unreachable("invalid Lang in langFromOpts"); } namespace {