r179753 - Add llvm_unreachable at end of fully covered switch to pacify GCC.
Benjamin Kramer
benny.kra at googlemail.com
Thu Apr 18 03:44:27 PDT 2013
Author: d0k
Date: Thu Apr 18 05:44:27 2013
New Revision: 179753
URL: http://llvm.org/viewvc/llvm-project?rev=179753&view=rev
Log:
Add llvm_unreachable at end of fully covered switch to pacify GCC.
Modified:
cfe/trunk/include/clang/Sema/ScopeInfo.h
Modified: cfe/trunk/include/clang/Sema/ScopeInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/ScopeInfo.h?rev=179753&r1=179752&r2=179753&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/ScopeInfo.h (original)
+++ cfe/trunk/include/clang/Sema/ScopeInfo.h Thu Apr 18 05:44:27 2013
@@ -529,6 +529,7 @@ public:
case CR_Default:
return "default captured statement";
}
+ llvm_unreachable("Invalid captured region kind!");
}
static bool classof(const FunctionScopeInfo *FSI) {
More information about the cfe-commits
mailing list