The problem is as following:
I have a Call
node from which I want to make an instance of a Expr
.
Previously before the Unified object protocol. I could achieve that by following:
Call call = Call::make(...);
Expr e = Expr(call->GetNodePtr());
Previously, Expr had the following constructor:
explicit Expr(NodePtr<Node> ptr) : NodeRef(ptr) {}
I could pass the NodePtr<Node>
by calling the GetNodePtr
on the Call Node pointer.
In the new unified protocol,
the new constructor for the Expr
is following:
explicit Expr(ObjectPtr<Object> ptr) : NodeRef(ptr) {}
however, i can not find a way to get ObjectPtr<Object>
from the call node pointer.