| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [WebAssembly] Don't abort on code with UB. | Dan Gohman | 2017-01-07 | 1 | -6/+17 |
| | | | | | | | | | Gracefully leave code that performs function-pointer bitcasts implying non-trivial pointer conversions alone, rather than aborting, since it's just undefined behavior. llvm-svn: 291326 | ||||
| * | [WebAssembly] Move a SmallVector to a more specific scope. NFC. | Dan Gohman | 2017-01-07 | 1 | -2/+2 |
| | | | | | llvm-svn: 291324 | ||||
| * | [WebAssembly] Add a pass to create wrappers for function bitcasts. | Dan Gohman | 2017-01-07 | 1 | -0/+148 |
| WebAssembly requires caller and callee signatures to match exactly. In LLVM, there are a variety of circumstances where signatures may be mismatched in practice, and one can bitcast a function address to another type to call it as that type. This patch adds a pass which replaces bitcasted function addresses with wrappers to replace the bitcasts. This doesn't catch everything, but it does match many common cases. llvm-svn: 291315 | |||||

