This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Warn on exception spec only when Wasm EH is used
ClosedPublic

Authored by aheejin on May 20 2020, 11:08 PM.

Details

Summary

In D80061 we added warning for exception specifications with types (such
as throw(int)), but it was enabled every time the target was wasm,
which means it warned (and ignored) exception specifications even if
wasm EH was not used. This fixes it and we only have the warning when we
enable -fwasm-exceptions.

Diff Detail

Event Timeline

aheejin created this revision.May 20 2020, 11:08 PM
aheejin updated this revision to Diff 265432.May 20 2020, 11:13 PM
  • Fix warning message
Harbormaster completed remote builds in B57494: Diff 265432.
dschuff accepted this revision.May 21 2020, 9:07 AM

otherwise LGTM

clang/docs/DiagnosticsReference.rst
14018 ↗(On Diff #265432)

I think it's not actually necessary to change the text of the warning. Since the warning is about an exception handling language feature, I think adding "exception handling" on the end doesn't make it any more clear and sounds a little redundant to me.

This revision is now accepted and ready to land.May 21 2020, 9:07 AM
aheejin updated this revision to Diff 265645.May 21 2020, 4:43 PM

Address comments

This revision was automatically updated to reflect the committed changes.