diff options
author | Joao Matos <ripzonetriton@gmail.com> | 2012-09-01 00:13:24 +0000 |
---|---|---|
committer | Joao Matos <ripzonetriton@gmail.com> | 2012-09-01 00:13:24 +0000 |
commit | f143ae9b68cdd40dfb120094baaa702b810eb52c (patch) | |
tree | 1fd3b3cb7d5979f0f363995225d236c63e264074 /lib/Sema/SemaDeclCXX.cpp | |
parent | 06b3a06007e02aebe497f34651a4e50b00adb051 (diff) |
Changed the remaining dead asserts to llvm_unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index ff1cbd14b6..2a221d8e5d 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -680,15 +680,13 @@ static bool CheckConstexprParameterTypes(Sema &SemaRef, /// WARNING: Indexes apply to particular diagnostics only! /// /// \returns diagnostic %select index. -static unsigned getRecordDiagFromTagKind(TagTypeKind Tag) -{ +static unsigned getRecordDiagFromTagKind(TagTypeKind Tag) { switch (Tag) { - case TTK_Struct: return 0; - case TTK_Interface: return 1; - case TTK_Class: return 2; - default: assert("Invalid tag kind for record diagnostic!"); + case TTK_Struct: return 0; + case TTK_Interface: return 1; + case TTK_Class: return 2; + default: llvm_unreachable("Invalid tag kind for record diagnostic!"); } - return -1; } // CheckConstexprFunctionDecl - Check whether a function declaration satisfies |