Skip to content

Commit 073dbaa

Browse files
committed
Fix GCC warnings. NFC.
1 parent be5435e commit 073dbaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/AST/ItaniumMangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ void CXXNameMangler::mangle(GlobalDecl GD) {
641641
// ::= <data name>
642642
// ::= <special-name>
643643
Out << "_Z";
644-
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(GD.getDecl()))
644+
if (isa<FunctionDecl>(GD.getDecl()))
645645
mangleFunctionEncoding(GD);
646646
else if (const VarDecl *VD = dyn_cast<VarDecl>(GD.getDecl()))
647647
mangleName(VD);

clang/lib/Index/USRGeneration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ static const ObjCCategoryDecl *getCategoryContext(const NamedDecl *D) {
388388
if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
389389
return ICD->getCategoryDecl();
390390
return nullptr;
391-
};
391+
}
392392

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

0 commit comments

Comments
 (0)