Let StructRetPromotion check if it's users are really calling it and not
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 5 Jun 2008 08:48:32 +0000 (08:48 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 5 Jun 2008 08:48:32 +0000 (08:48 +0000)
commit257da0a7fc2df19444e57e7c84a278c6c1b9b551
tree81d70701a9aa2db61fd45abf153f2d5bb2fbe816
parent41335411a84aaf709e79b86b7dc109976940b772
Let StructRetPromotion check if it's users are really calling it and not
passing its pointer. Fixes test with added testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51991 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/StructRetPromotion.cpp
test/Transforms/SRETPromotion/2008-06-04-function-pointer-passing.ll [new file with mode: 0644]