This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen][ObjC] Load indirect ARC arguments in prolog
ClosedPublic

Authored by kastiglione on Jun 23 2017, 4:31 PM.

Details

Reviewers
compnerd
rnk
Summary

When generating a prolog, add loads for ARC arguments passed indirectly.

Event Timeline

kastiglione created this revision.Jun 23 2017, 4:31 PM
rnk accepted this revision.Jun 26 2017, 8:34 AM

lgtm

test/CodeGenObjCXX/arc-indirect.mm
20

You should CHECK for the load and appropriate call here. As written, this test would pass if you instead had changed the code to insert a null check.

This revision is now accepted and ready to land.Jun 26 2017, 8:34 AM

CHECK load and call

kastiglione marked an inline comment as done.Jun 26 2017, 10:53 AM

Thanks @rnk.

I don't have commit access; @compnerd, @rnk would either of you mind committing this? Thanks in advance!

compnerd closed this revision.Jun 27 2017, 11:38 AM
compnerd edited edge metadata.

SVN r306444