https://bugs.llvm.org/show_bug.cgi?id=51966
Bug ID: 51966
Summary: The clang compilation result is inconsistent with the
document in Objective-C Automatic Reference Counting
(ARC)
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Documentation
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
The Objective-C Automatic Reference Counting page mentions that `a null pointer
is stored into the lvalue using primitive semantics. This step is skipped if
the object is __unsafe_unretained`
However, with ARC, the following code have a different result.
A null pointer is stored into unsafeObj.
- (void)foo {
id strongObj;
__weak id weakObj;
__unsafe_unretained id unsafeObj;
}
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs