OSDN Git Service

InstCombine: correctly change byval type attribute alongside call args.
authorTim Northover <tnorthover@apple.com>
Wed, 5 Jun 2019 20:38:17 +0000 (20:38 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 5 Jun 2019 20:38:17 +0000 (20:38 +0000)
commitc820be6850e524ab079b283bb6360bbb36d92f8d
treec79a69494cd0ee1d8bb3db21ede7c6b31e4f4a45
parentee9bd50401371604e75eb2b5633a361b1ae0fa1f
InstCombine: correctly change byval type attribute alongside call args.

When the byval attribute has a type, it must match the pointee type of
any parameter; but InstCombine was not updating the attribute when
folding casts of various kinds away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362643 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/byval.ll [new file with mode: 0644]