aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorMikael Holmen <mikael.holmen@ericsson.com>2024-04-04 14:57:10 +0200
committerMikael Holmen <mikael.holmen@ericsson.com>2024-04-04 15:07:36 +0200
commit417a068b63c01d79511fe3732dd52377b05d06fc (patch)
treea219ae24f24d1601257236a5f3bc8ed0e1c9259d /clang/lib/CodeGen/CGBlocks.cpp
parente0e615efac522365591119165a7691ce869de512 (diff)
downloadllvm-417a068b63c01d79511fe3732dd52377b05d06fc.zip
llvm-417a068b63c01d79511fe3732dd52377b05d06fc.tar.gz
llvm-417a068b63c01d79511fe3732dd52377b05d06fc.tar.bz2
[clang][CGBlocks] Remove unused variable "refType" [NFC]
Without the change gcc warned like ../../clang/lib/CodeGen/CGBlocks.cpp:965:21: warning: unused variable 'refType' [-Wunused-variable] 965 | } else if (auto refType = type->getAs<ReferenceType>()) { | ^~~~~~~
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index a01f2c7..47f063b 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -962,7 +962,7 @@ llvm::Value *CodeGenFunction::EmitBlockLiteral(const CGBlockInfo &blockInfo) {
}
// If it's a reference variable, copy the reference into the block field.
- } else if (auto refType = type->getAs<ReferenceType>()) {
+ } else if (type->getAs<ReferenceType>()) {
Builder.CreateStore(src.emitRawPointer(*this), blockField);
// If type is const-qualified, copy the value into the block field.