]> granicus.if.org Git - llvm/commit
[WebAssembly] Don't create bitcast-wrappers for varargs.
authorDan Gohman <dan433584@gmail.com>
Fri, 20 Jan 2017 20:50:29 +0000 (20:50 +0000)
committerDan Gohman <dan433584@gmail.com>
Fri, 20 Jan 2017 20:50:29 +0000 (20:50 +0000)
commit0d4e33d2114e074fa3d84b85bf33df706bb3e5f6
tree86d2be6a28cbce66f40cb7cafc3b0d4956795f29
parent85b2e0b34be8be69499764c551a42b96ec7a0dfd
[WebAssembly] Don't create bitcast-wrappers for varargs.

WebAssembly varargs functions use a significantly different ABI than
non-varargs functions, and the current code in
WebAssemblyFixFunctionBitcasts doesn't handle that difference. For now,
just avoid creating wrapper functions in the presence of varargs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292645 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
test/CodeGen/WebAssembly/function-bitcasts.ll