Skip to content

Commit

Permalink
Replace throw() with noexcept. Unlike throw(), noexcept indicates tha…
Browse files Browse the repository at this point in the history
…t the function does not throw.

Before C++17, throw() was equivalent to wrapping the function in a try {} catch
{ std::unexpected(); }. In C++17 throw() was made equivalent to noexcept and
in C++20 throw() was removed.
  • Loading branch information
nlewycky committed Aug 2, 2019
1 parent ac49e57 commit 83aa9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/llvm-backend/cpp/object_loader.hh
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void module_delete(WasmModule *module) { delete module; }

bool invoke_trampoline(trampoline_t trampoline, void *ctx, void *func,
void *params, void *results, WasmTrap::Type *trap_out,
box_any_t *user_error, void *invoke_env) throw() {
box_any_t *user_error, void *invoke_env) noexcept {
try {
trampoline(ctx, func, params, results);
return true;
Expand Down

0 comments on commit 83aa9c6

Please sign in to comment.