File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -641,7 +641,7 @@ void CXXNameMangler::mangle(GlobalDecl GD) {
641
641
// ::= <data name>
642
642
// ::= <special-name>
643
643
Out << " _Z" ;
644
- if (const FunctionDecl *FD = dyn_cast <FunctionDecl>(GD.getDecl ()))
644
+ if (isa <FunctionDecl>(GD.getDecl ()))
645
645
mangleFunctionEncoding (GD);
646
646
else if (const VarDecl *VD = dyn_cast<VarDecl>(GD.getDecl ()))
647
647
mangleName (VD);
Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ static const ObjCCategoryDecl *getCategoryContext(const NamedDecl *D) {
388
388
if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext ()))
389
389
return ICD->getCategoryDecl ();
390
390
return nullptr ;
391
- };
391
+ }
392
392
393
393
void USRGenerator::VisitObjCMethodDecl (const ObjCMethodDecl *D) {
394
394
const DeclContext *container = D->getDeclContext ();
You can’t perform that action at this time.
0 commit comments