Commit 002c6020 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

Function uninit-call should use terminate_with

Summary: When the Function signature is `noexcept`, rather than using `throw_exception`, in order to save a bit of generated code size.

Reviewed By: luciang

Differential Revision: D34190570

fbshipit-source-id: c0f9cbd6abffd9b1517d28126d8eb5c491089ea8
parent 70487d25
......@@ -539,7 +539,7 @@ struct FunctionTraits<ReturnType(Args...) const noexcept> {
}
static ReturnType uninitCall(CallArg<Args>..., Data&) noexcept {
throw_exception<std::bad_function_call>();
terminate_with<std::bad_function_call>();
}
ReturnType operator()(Args... args) const noexcept {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment