[clang] 30adb43 - [AST] Fix a warning
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 20 13:05:10 PDT 2024
Author: Kazu Hirata
Date: 2024-09-20T13:05:04-07:00
New Revision: 30adb43c897a45c18d7dd163fb4ff40c915fc488
URL: https://github.com/llvm/llvm-project/commit/30adb43c897a45c18d7dd163fb4ff40c915fc488
DIFF: https://github.com/llvm/llvm-project/commit/30adb43c897a45c18d7dd163fb4ff40c915fc488.diff
LOG: [AST] Fix a warning
This patch fixes:
clang/lib/AST/DeclTemplate.cpp:466:9: error: unused type alias 'Base'
[-Werror,-Wunused-local-typedef]
Added:
Modified:
clang/lib/AST/DeclTemplate.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/DeclTemplate.cpp b/clang/lib/AST/DeclTemplate.cpp
index 6f17baf4fc01ad..b779d79af81f26 100644
--- a/clang/lib/AST/DeclTemplate.cpp
+++ b/clang/lib/AST/DeclTemplate.cpp
@@ -463,8 +463,6 @@ void FunctionTemplateDecl::addSpecialization(
}
void FunctionTemplateDecl::mergePrevDecl(FunctionTemplateDecl *Prev) {
- using Base = RedeclarableTemplateDecl;
-
// If we haven't created a common pointer yet, then it can just be created
// with the usual method.
if (!getCommonPtrInternal())
More information about the cfe-commits
mailing list