[llvm-bugs] [Bug 51966] New: The clang compilation result is inconsistent with the document in Objective-C Automatic Reference Counting (ARC)
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Sep 24 23:46:41 PDT 2021
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: unassignedclangbugs at nondot.org
Reporter: sunbohong at gmail.com
CC: llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210925/daf9ddde/attachment.html>
More information about the llvm-bugs
mailing list