Two small ARC fixes:
- Make objc_retain() check for stack blocks and implicitly copy them. This fixes the case where a block pointer is stored in an object-typed variable and is assigned. - Tweak objc_retainAutoreleaseReturnValue() so that the ARC optimiser doesn't detect that the body looks like a call to objc_retainAutoreleaseReturnValue() and replace it with an infinitely recursive call. The second fix now means that arc.m will compile with clang without producing a function that calls itself.main
parent
fce7c776b6
commit
73891aaecc
Loading…
Reference in New Issue