Skip to content

Commit e55bda0

Browse files
committed
[NFC] Fix the warning Wcovered-switch-default
There is a warning saying: ASTWriter.h:766:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default] 766 | default: | ^ 1 error generated. And this patch tries to fix this.
1 parent 3fe8141 commit e55bda0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/include/clang/Serialization/ASTWriter.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,8 @@ class ASTWriter : public ASTDeserializationListener,
763763
return DeclDependentNonTemplateCXXMethodAbbrev;
764764
case FunctionDecl::TK_DependentFunctionTemplateSpecialization:
765765
return DeclDependentSpecializationCXXMethodAbbrev;
766-
default:
767-
llvm_unreachable("Unknwon Template Kind!");
768766
}
767+
llvm_unreachable("Unknwon Template Kind!");
769768
}
770769
unsigned getDeclTemplateTypeParmAbbrev() const {
771770
return DeclTemplateTypeParmAbbrev;

0 commit comments

Comments
 (0)