This is an archive of the discontinued LLVM Phabricator instance.

Add a new WeakVH value handle; NFC
ClosedPublic

Authored by sanjoy on Apr 19 2017, 9:47 PM.

Details

Summary

WeakVH nulls itself out if the value it was tracking gets deleted, but
it does not track RAUW.

Diff Detail

Repository
rL LLVM

Event Timeline

sanjoy created this revision.Apr 19 2017, 9:47 PM
davide accepted this revision.Apr 25 2017, 2:12 PM
davide added inline comments.
include/llvm/IR/ValueHandle.h
37–38 ↗(On Diff #95882)

sorting?

129–130 ↗(On Diff #95882)

Maybe a nullable value handle is enough?

This revision is now accepted and ready to land.Apr 25 2017, 2:12 PM
sanjoy added inline comments.Apr 25 2017, 6:19 PM
include/llvm/IR/ValueHandle.h
129–130 ↗(On Diff #95882)

I want to be clear about *when* the value is nulled out.

davide added inline comments.Apr 25 2017, 6:24 PM
include/llvm/IR/ValueHandle.h
129–130 ↗(On Diff #95882)

No objections.

This revision was automatically updated to reflect the committed changes.