InstCombine: Don't strip bitcasts off of callsites marked 'thunk'
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 21 Jan 2015 22:32:04 +0000 (22:32 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 21 Jan 2015 22:32:04 +0000 (22:32 +0000)
commit4c0a6e918a0b53466bf886aab573b999e4c26207
treec0f82eb7f8a13fe458e583de25cf281cf6715988
parent9da94483395fa1023a577be19811a250666cd7cd
InstCombine: Don't strip bitcasts off of callsites marked 'thunk'

The return type of a thunk is meaningless, we just want the arguments
and return value to be forwarded.

llvm-svn: 226708
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/call-cast-target.ll