Skip to content

Commit 0712898

Browse files
[BoundsSafety][NFC] Fix warning variable 'FT' set but not used
(cherry picked from commit f2c12cb)
1 parent a0ef575 commit 0712898

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
@@ -4191,7 +4191,7 @@ static bool mergeFunctionDeclTerminatedByAttribute(FunctionDecl *New,
41914191
QualType NewFuncTy = Self.Context.getFunctionType(
41924192
MergeRetTy, MergeParamTys, FT->getExtProtoInfo());
41934193
New->setType(NewFuncTy);
4194-
} else if (auto *FT = New->getType()->getAs<FunctionNoProtoType>()) {
4194+
} else if (New->getType()->isFunctionNoProtoType()) {
41954195
QualType NewFuncTy = Self.Context.getFunctionNoProtoType(MergeRetTy);
41964196
New->setType(NewFuncTy);
41974197
}

0 commit comments

Comments
 (0)