Skip to content

Commit 74eca0d

Browse files
giginetGreg Parker
authored andcommitted
Fix warning on Xcode 9 beta2
1 parent 6859de0 commit 74eca0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/SwiftObject.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ static bool isObjCForUnownedReference(void *value) {
926926
if (!ref->Value) {
927927
return value == nullptr;
928928
} else if (auto objcRef = dyn_cast<ObjCUnownedReference>(ref)) {
929-
auto refValue = objc_loadWeakRetained(&objcRef->storage()->WeakRef);
929+
id refValue = objc_loadWeakRetained(&objcRef->storage()->WeakRef);
930930
bool isEqual = (void*)refValue == value;
931931
// This ObjC case has no deliberate unowned check here,
932932
// unlike the Swift case.

0 commit comments

Comments
 (0)