aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorMichael Liao <michael.hliao@gmail.com>2021-06-28 22:48:26 -0400
committerMichael Liao <michael.hliao@gmail.com>2021-06-28 22:50:36 -0400
commit948308ef34dc7da8bb741a85eb9941cc2b05d227 (patch)
treebe9dbb71ea52b4f6339c78880d00b11709517088 /clang/lib/CodeGen/CGCall.cpp
parente818eface8034040fbea7ce2f05761944b2d53b1 (diff)
downloadllvm-948308ef34dc7da8bb741a85eb9941cc2b05d227.zip
llvm-948308ef34dc7da8bb741a85eb9941cc2b05d227.tar.gz
llvm-948308ef34dc7da8bb741a85eb9941cc2b05d227.tar.bz2
Fix `-Wunused-variable` warning. NFC.
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 35b3417..4ff6c63 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -2173,7 +2173,7 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
// Add "sample-profile-suffix-elision-policy" attribute for internal linkage
// functions with -funique-internal-linkage-names.
if (TargetDecl && CodeGenOpts.UniqueInternalLinkageNames) {
- if (auto *Fn = dyn_cast<FunctionDecl>(TargetDecl)) {
+ if (isa<FunctionDecl>(TargetDecl)) {
if (this->getFunctionLinkage(CalleeInfo.getCalleeDecl()) ==
llvm::GlobalValue::InternalLinkage)
FuncAttrs.addAttribute("sample-profile-suffix-elision-policy",