Implement a better fix for PR15185.
authorBill Wendling <isanbard@gmail.com>
Thu, 18 Apr 2013 23:34:17 +0000 (23:34 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 18 Apr 2013 23:34:17 +0000 (23:34 +0000)
commit74d892433d617daa9728f2c52446b2cc2846553f
tree614cf179cab8292beaca069230d450abcfdc8666
parentfa2b25c57300dc9c518ea35bbc9dc8658fdbf454
Implement a better fix for PR15185.

If the return type is a pointer and the call returns an integer, then do the
inttoptr convertions. And vice versa.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179817 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/MergeFunctions.cpp