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 6859de0 commit 74eca0dCopy full SHA for 74eca0d
stdlib/public/runtime/SwiftObject.mm
@@ -926,7 +926,7 @@ static bool isObjCForUnownedReference(void *value) {
926
if (!ref->Value) {
927
return value == nullptr;
928
} else if (auto objcRef = dyn_cast<ObjCUnownedReference>(ref)) {
929
- auto refValue = objc_loadWeakRetained(&objcRef->storage()->WeakRef);
+ id refValue = objc_loadWeakRetained(&objcRef->storage()->WeakRef);
930
bool isEqual = (void*)refValue == value;
931
// This ObjC case has no deliberate unowned check here,
932
// unlike the Swift case.
0 commit comments