Skip to content

Commit f2c12cb

Browse files
[BoundsSafety][NFC] Fix warning variable 'FT' set but not used
1 parent b6de36c commit f2c12cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4216,7 +4216,7 @@ static bool mergeFunctionDeclTerminatedByAttribute(FunctionDecl *New,
42164216
QualType NewFuncTy = Self.Context.getFunctionType(
42174217
MergeRetTy, MergeParamTys, FT->getExtProtoInfo());
42184218
New->setType(NewFuncTy);
4219-
} else if (auto *FT = New->getType()->getAs<FunctionNoProtoType>()) {
4219+
} else if (New->getType()->isFunctionNoProtoType()) {
42204220
QualType NewFuncTy = Self.Context.getFunctionNoProtoType(MergeRetTy);
42214221
New->setType(NewFuncTy);
42224222
}

0 commit comments

Comments
 (0)