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.
1 parent e0e615e commit 417a068Copy full SHA for 417a068
clang/lib/CodeGen/CGBlocks.cpp
@@ -962,7 +962,7 @@ llvm::Value *CodeGenFunction::EmitBlockLiteral(const CGBlockInfo &blockInfo) {
962
}
963
964
// If it's a reference variable, copy the reference into the block field.
965
- } else if (auto refType = type->getAs<ReferenceType>()) {
+ } else if (type->getAs<ReferenceType>()) {
966
Builder.CreateStore(src.emitRawPointer(*this), blockField);
967
968
// If type is const-qualified, copy the value into the block field.
0 commit comments