Skip to content

Commit

Permalink
Fix GCC warnings. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbuck committed Mar 8, 2020
1 parent be5435e commit 073dbaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/lib/AST/ItaniumMangle.cpp
Expand Up @@ -641,7 +641,7 @@ void CXXNameMangler::mangle(GlobalDecl GD) {
// ::= <data name>
// ::= <special-name>
Out << "_Z";
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(GD.getDecl()))
if (isa<FunctionDecl>(GD.getDecl()))
mangleFunctionEncoding(GD);
else if (const VarDecl *VD = dyn_cast<VarDecl>(GD.getDecl()))
mangleName(VD);
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Index/USRGeneration.cpp
Expand Up @@ -388,7 +388,7 @@ static const ObjCCategoryDecl *getCategoryContext(const NamedDecl *D) {
if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
return ICD->getCategoryDecl();
return nullptr;
};
}

void USRGenerator::VisitObjCMethodDecl(const ObjCMethodDecl *D) {
const DeclContext *container = D->getDeclContext();
Expand Down

0 comments on commit 073dbaa

Please sign in to comment.