[clang] 87bd71e - Revert "[NFC] Fix the warning Wcovered-switch-default"
Augusto Noronha via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 15 14:46:22 PST 2023
Author: Augusto Noronha
Date: 2023-12-15T14:43:25-08:00
New Revision: 87bd71efd0af21b6663a7729317952535446f36d
URL: https://github.com/llvm/llvm-project/commit/87bd71efd0af21b6663a7729317952535446f36d
DIFF: https://github.com/llvm/llvm-project/commit/87bd71efd0af21b6663a7729317952535446f36d.diff
LOG: Revert "[NFC] Fix the warning Wcovered-switch-default"
This reverts commit e55bda06dc2bb1ef11ff4fcc43f90d8bf843f967.
Added:
Modified:
clang/include/clang/Serialization/ASTWriter.h
Removed:
################################################################################
diff --git a/clang/include/clang/Serialization/ASTWriter.h b/clang/include/clang/Serialization/ASTWriter.h
index de69f99003d827..16ab9583f8ed8e 100644
--- a/clang/include/clang/Serialization/ASTWriter.h
+++ b/clang/include/clang/Serialization/ASTWriter.h
@@ -763,8 +763,9 @@ class ASTWriter : public ASTDeserializationListener,
return DeclDependentNonTemplateCXXMethodAbbrev;
case FunctionDecl::TK_DependentFunctionTemplateSpecialization:
return DeclDependentSpecializationCXXMethodAbbrev;
+ default:
+ llvm_unreachable("Unknwon Template Kind!");
}
- llvm_unreachable("Unknwon Template Kind!");
}
unsigned getDeclTemplateTypeParmAbbrev() const {
return DeclTemplateTypeParmAbbrev;
More information about the cfe-commits
mailing list