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 | 921cf137b3b7aee1860cb36f51c43f3e1d08de66 (patch) | |
tree | b8bb4b362ec4bea6c09136d94d8407b017a60b3b /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | ff6e4d192847e4b854809c756216d066aab38551 (diff) | |
download | bcm5719-llvm-921cf137b3b7aee1860cb36f51c43f3e1d08de66.tar.gz bcm5719-llvm-921cf137b3b7aee1860cb36f51c43f3e1d08de66.zip |
This is always going to be true so the cast isn't necessary.
llvm-svn: 161744
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 379d1585a5d..00127ac72f4 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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)); } } |