diff options
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r-- | clang/lib/AST/Decl.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index cbd55889c9e..8a523d6a0de 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -298,11 +298,8 @@ static LinkageInfo getLIForTemplateTypeArgument(QualType T) { if (!TT) return LI; - const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(TT->getDecl()); - if (!RD) - return LI; - - const FunctionDecl *FD = getOutermostFunctionContext(RD); + const Decl *D = TT->getDecl(); + const FunctionDecl *FD = getOutermostFunctionContext(D); if (!FD) return LI; |