[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)
commita99b717f527fe7e37bf7a0b3fb612b7312d5c656
tree85eb776a1a955740e3501aa7a8bf03a251f16c3d
parent0347c0b87419d3added9e3e39cfe36280d8ce78a
[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.

llvm-svn: 292645
llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
llvm/test/CodeGen/WebAssembly/function-bitcasts.ll