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)
commitc070e4e5284849b42925667342da3ca6aac93040
treed5ca3143cedbe00c703139d3e36b54027d6731b6
parenta7a4b836a38bfdb1c25137d0e473fbe2f9c44406
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226708 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/call-cast-target.ll