Let StructRetPromotion check if all if its users are really calls or invokesn,
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 5 Jun 2008 08:57:20 +0000 (08:57 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 5 Jun 2008 08:57:20 +0000 (08:57 +0000)
commit47c6fd73172b07211ffaaad7189847ccd2416a73
treeb4ac9d823367bc2de5461c37d9b884e156489a4d
parent257da0a7fc2df19444e57e7c84a278c6c1b9b551
Let StructRetPromotion check if all if its users are really calls or invokesn,
not other instructions. This fixes a crash with the added testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51992 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/StructRetPromotion.cpp
test/Transforms/SRETPromotion/2008-06-05-non-call-use.ll [new file with mode: 0644]