Skip to content

Commit 948308e

Browse files
committed
Fix -Wunused-variable warning. NFC.
1 parent e818efa commit 948308e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
21732173
// Add "sample-profile-suffix-elision-policy" attribute for internal linkage
21742174
// functions with -funique-internal-linkage-names.
21752175
if (TargetDecl && CodeGenOpts.UniqueInternalLinkageNames) {
2176-
if (auto *Fn = dyn_cast<FunctionDecl>(TargetDecl)) {
2176+
if (isa<FunctionDecl>(TargetDecl)) {
21772177
if (this->getFunctionLinkage(CalleeInfo.getCalleeDecl()) ==
21782178
llvm::GlobalValue::InternalLinkage)
21792179
FuncAttrs.addAttribute("sample-profile-suffix-elision-policy",

0 commit comments

Comments
 (0)