diff options
author | Eric Christopher <echristo@apple.com> | 2012-08-13 02:07:42 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-08-13 02:07:42 +0000 |
commit | 860de6b4223c789a149b7d042c44a66c3e021c52 (patch) | |
tree | f5023c3ce51d04357e3e449c526e53d29f24e084 /lib/CodeGen/CGDebugInfo.cpp | |
parent | f50555eedef33fd5a67d369aa0ae8a6f1d201543 (diff) |
This is always going to be true so the cast isn't necessary.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 379d1585a5..00127ac72f 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -999,11 +999,9 @@ CollectCXXMemberFunctions(const CXXRecordDecl *RD, llvm::DIFile Unit, } else if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D)) for (FunctionTemplateDecl::spec_iterator SI = FTD->spec_begin(), - SE = FTD->spec_end(); SI != SE; ++SI) { - FunctionDecl *FD = *SI; - if (CXXMethodDecl *M = dyn_cast<CXXMethodDecl>(FD)) - EltTys.push_back(CreateCXXMemberFunction(M, Unit, RecordTy)); - } + SE = FTD->spec_end(); SI != SE; ++SI) + EltTys.push_back(CreateCXXMemberFunction(cast<CXXMethodDecl>(*SI), Unit, + RecordTy)); } } |