HomePhabricator

[CodeGen][ObjC] Emit a primitive store to store a __strong field in…

Authored by ahatanak on Nov 29 2019, 9:56 AM.

Description

[CodeGen][ObjC] Emit a primitive store to store a __strong field in ExpandTypeFromArgs

This fixes a bug in IRGen where a call to llvm.objc.storeStrong was
being emitted to initialize a __strong field of an uninitialized
temporary struct, which caused crashes at runtime.

rdar://problem/51807365

Details

Committed
ahatanakDec 3 2019, 11:44 PM
Parents
rGd08dc0655e74: gn build: Merge 9f251eece46
Branches
Unknown
Tags
Unknown