Fix -Wunused-variable 'FD' by using it instead of ND when they're equal but FD

has a more precise type.

llvm-svn: 200889
This commit is contained in:
Nick Lewycky 2014-02-05 23:53:29 +00:00
parent 1b55dd9a81
commit 1f529663bb
1 changed files with 2 additions and 2 deletions

View File

@ -1093,11 +1093,11 @@ void MicrosoftCXXNameMangler::mangleTemplateArg(const TemplateDecl *TD,
if (const FieldDecl *FD = dyn_cast<FieldDecl>(ND)) {
mangleMemberDataPointer(cast<CXXRecordDecl>(FD->getParent()), FD);
} else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(ND);
const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD);
if (MD && MD->isInstance())
mangleMemberFunctionPointer(MD->getParent(), MD);
else
mangle(ND, "$1?");
mangle(FD, "$1?");
} else {
mangle(ND, TA.isDeclForReferenceParam() ? "$E?" : "$1?");
}