Handle bitcasts to non-function (integer) pointer types and also handle cast
instructions as well as cast const exprs.
Fixes PR39591
Paths
| Differential D54447
[WebAssembly] Fix broken assumption that all bitcasts are to functions types ClosedPublic Authored by sbc100 on Nov 12 2018, 2:02 PM.
Details Summary Handle bitcasts to non-function (integer) pointer types and also handle cast Fixes PR39591
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, sunfish, aheejin and 2 others. · View Herald TranscriptNov 12 2018, 2:02 PM Comment Actions
This revision is now accepted and ready to land.Nov 13 2018, 11:09 AM Closed by commit rL346778: [WebAssembly] Fix broken assumption that all bitcasts are to functions types (authored by sbc). · Explain WhyNov 13 2018, 11:16 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 173758 lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
test/CodeGen/WebAssembly/add-prototypes.ll
|
nit: this (and below) could be auto because of the dyn_cast