Skip to content

Commit 417a068

Browse files
committed
[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>()) { | ^~~~~~~
1 parent e0e615e commit 417a068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGBlocks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ llvm::Value *CodeGenFunction::EmitBlockLiteral(const CGBlockInfo &blockInfo) {
962962
}
963963

964964
// If it's a reference variable, copy the reference into the block field.
965-
} else if (auto refType = type->getAs<ReferenceType>()) {
965+
} else if (type->getAs<ReferenceType>()) {
966966
Builder.CreateStore(src.emitRawPointer(*this), blockField);
967967

968968
// If type is const-qualified, copy the value into the block field.

0 commit comments

Comments
 (0)