Don't constant propagate byval pointers, since they are not really pointers, but
authorTorok Edwin <edwintorok@gmail.com>
Thu, 24 Sep 2009 09:47:18 +0000 (09:47 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Thu, 24 Sep 2009 09:47:18 +0000 (09:47 +0000)
commit30a94e3b4203cee64db0edd997780bbe4ad0acdc
tree933afcf9967cb4b73c1c5fb731b12a6dfe16c0fd
parent48f7ce88a6040c12d4c7d0a5bd208cf1e0bda9d1
Don't constant propagate byval pointers, since they are not really pointers, but
rather structs passed by value.
This fixes PR5038.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82689 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/IPConstantPropagation.cpp
lib/Transforms/Scalar/SCCP.cpp
test/Transforms/IPConstantProp/2009-09-24-byval-ptr.ll [new file with mode: 0644]