]> granicus.if.org Git - llvm/commit
[WebAssembly] Don't abort on code with UB.
authorDan Gohman <dan433584@gmail.com>
Sat, 7 Jan 2017 01:50:01 +0000 (01:50 +0000)
committerDan Gohman <dan433584@gmail.com>
Sat, 7 Jan 2017 01:50:01 +0000 (01:50 +0000)
commite877be12b24de8ade7136cca9fcc3075dc61c39a
tree8bbd2ce8f5113fb8211cd1facbcf109e08cbed08
parent45b889b776f0c12637e40efa45a6c9f2871400d5
[WebAssembly] Don't abort on code with UB.

Gracefully leave code that performs function-pointer bitcasts implying
non-trivial pointer conversions alone, rather than aborting, since it's
just undefined behavior.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291326 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
test/CodeGen/WebAssembly/function-bitcasts.ll
test/CodeGen/WebAssembly/unsupported-function-bitcasts.ll [new file with mode: 0644]