mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 10:36:06 +00:00
Generate the conservative objc gc's API for now.
llvm-svn: 65051
This commit is contained in:
parent
bea465aefb
commit
3114e94e10
@ -416,10 +416,17 @@ void CodeGenFunction::EmitStoreThroughLValue(RValue Src, LValue Dst,
|
||||
// load of a __strong object.
|
||||
llvm::Value *LvalueDst = Dst.getAddress();
|
||||
llvm::Value *src = Src.getScalarVal();
|
||||
#if 0
|
||||
// FIXME. We cannot positively determine if we have an
|
||||
// 'ivar' assignment, object assignment or an unknown
|
||||
// assignment. For now, generate call to objc_assign_strongCast
|
||||
// assignment which is a safe, but consevative assumption.
|
||||
if (Dst.isObjCIvar())
|
||||
CGM.getObjCRuntime().EmitObjCIvarAssign(*this, src, LvalueDst);
|
||||
else
|
||||
CGM.getObjCRuntime().EmitObjCGlobalAssign(*this, src, LvalueDst);
|
||||
#endif
|
||||
CGM.getObjCRuntime().EmitObjCStrongCastAssign(*this, src, LvalueDst);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user