[SelectionDAG] Use the correct return type for memcpy, memmove, and memset.
authorDan Gohman <dan433584@gmail.com>
Mon, 25 Jan 2016 15:05:56 +0000 (15:05 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 25 Jan 2016 15:05:56 +0000 (15:05 +0000)
commit5016c0f99d2cf8b716337b56a471a2f5f6f6f73d
tree1bdf2265647d66cf447c0f838c6181d1fbe6ce23
parent121de0bcfaf321bc39366cd7b2b31b80e2c157c6
[SelectionDAG] Use the correct return type for memcpy, memmove, and memset.

When generating calls to memcpy, memmove, and memset, use void* as the return
type rather than void, to match the standard signatures for these functions.

This has no practical effect for most targets, since the return values of
these calls aren't being used anyway, and most calling conventions tolerate
this kind of mismatch. However, this change will help support future
optimizations to utilize the return value to avoid holding the argument
value live across a call.

llvm-svn: 258691
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/WebAssembly/global.ll