HomePhabricator

[WebAssembly] Handle exception specifications

Authored by aheejin on May 8 2020, 4:19 PM.

Description

[WebAssembly] Handle exception specifications

Summary:
Wasm currently does not fully handle exception specifications. Rather
than crashing,

  • This treats throw() in the same way as noexcept.
  • This ignores and prints a warning for throw(type, ..), for a temporary measure. This warning is controlled by -Wwasm-exception-spec, which is on by default. You can suppress the warning by using -Wno-wasm-exception-spec.

Reviewers: dschuff

Subscribers: sbc100, jgravelle-google, sunfish, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80061

Details

Committed
aheejinMay 19 2020, 1:16 AM
Differential Revision
D80061: [WebAssembly] Handle exception specifications
Parents
rG51bb2128ef03: [Analyzer][VLASizeChecker] Check for VLA size overflow.
Branches
Unknown
Tags
Unknown