Bug 1570367 - Don't generate pure virtual unused AllocPFoo, r=mccr8

Differential Revision: https://phabricator.services.mozilla.com/D40066

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nika Layzell 2019-07-31 21:59:52 +00:00
parent 4a30691591
commit 0a2e2e5949

View File

@ -3334,6 +3334,9 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
actortype = md.actorDecl().bareType(self.side)
if managed.isRefcounted():
if not self.receivesMessage(md):
continue
actortype.ptr = False
actortype = _alreadyaddrefed(actortype)