We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Wunused-variable
1 parent e818efa commit 948308eCopy full SHA for 948308e
clang/lib/CodeGen/CGCall.cpp
@@ -2173,7 +2173,7 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
2173
// Add "sample-profile-suffix-elision-policy" attribute for internal linkage
2174
// functions with -funique-internal-linkage-names.
2175
if (TargetDecl && CodeGenOpts.UniqueInternalLinkageNames) {
2176
- if (auto *Fn = dyn_cast<FunctionDecl>(TargetDecl)) {
+ if (isa<FunctionDecl>(TargetDecl)) {
2177
if (this->getFunctionLinkage(CalleeInfo.getCalleeDecl()) ==
2178
llvm::GlobalValue::InternalLinkage)
2179
FuncAttrs.addAttribute("sample-profile-suffix-elision-policy",
0 commit comments