binpac: Fix an exception slicing issue in binpac generated cleanup code.

Switch to using a no-argument throw to preserve the dynamic type of
the binpac exception.  Otherwise, the exception is "sliced" and can only
be subsequently handled as binpac::Exception and not a derived type.
This commit is contained in:
Jon Siwek 2013-04-24 15:25:59 -05:00 committed by Tim Wojtulewicz
parent 14e3d5a1a3
commit ce2b56751b

View file

@ -235,7 +235,7 @@ void FlowDecl::GenProcessFunc(Output *out_h, Output *out_cc)
out_cc->println("%s->DiscardData();",
env_->LValue(flow_buffer_id));
}
out_cc->println("throw e;");
out_cc->println("throw;");
out_cc->println("}");
out_cc->dec_indent();