Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE in ipdl. r=bsmedberg

This commit is contained in:
Chris Peterson 2014-04-27 18:56:03 -07:00
parent 47a58d1945
commit 1833ad5707

View File

@ -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