mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE in ipdl. r=bsmedberg
This commit is contained in:
parent
47a58d1945
commit
1833ad5707
@ -3079,12 +3079,12 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
if hasReply:
|
||||
params.append(Decl(Type('Message', ref=1, ptr=1),
|
||||
replyvar.name))
|
||||
|
||||
|
||||
method = MethodDefn(MethodDecl(name, virtual=True,
|
||||
params=params, ret=_Result.Type()))
|
||||
|
||||
if not switch:
|
||||
crash = StmtExpr(ExprCall(ExprVar('MOZ_ASSUME_UNREACHABLE'),
|
||||
crash = StmtExpr(ExprCall(ExprVar('MOZ_ASSERT_UNREACHABLE'),
|
||||
args=[ExprLiteral.String('message protocol not supported')]))
|
||||
method.addstmts([crash, StmtReturn(_Result.NotKnown)])
|
||||
return method
|
||||
|
Loading…
Reference in New Issue
Block a user