From 0579c165aa54840898956703ebd63bdd1f4dd907 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 18 Apr 2013 10:44:27 +0000 Subject: [PATCH] Add llvm_unreachable at end of fully covered switch to pacify GCC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179753 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/ScopeInfo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/clang/Sema/ScopeInfo.h b/include/clang/Sema/ScopeInfo.h index a48422a308..103ce826ae 100644 --- a/include/clang/Sema/ScopeInfo.h +++ b/include/clang/Sema/ScopeInfo.h @@ -529,6 +529,7 @@ public: case CR_Default: return "default captured statement"; } + llvm_unreachable("Invalid captured region kind!"); } static bool classof(const FunctionScopeInfo *FSI) { -- 2.40.0