forked from OSchip/llvm-project
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:
parent
1b55dd9a81
commit
1f529663bb
|
@ -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?");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue