Fix arg promotion to propagate the correct attrs on the calls to
authorChris Lattner <sabre@nondot.org>
Thu, 17 Jan 2008 01:17:03 +0000 (01:17 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Jan 2008 01:17:03 +0000 (01:17 +0000)
commitab04e13a1f017c2b0a82344b4c083d92139ee2cc
tree2cf96957333606d277053e4ad193fab92eca4d19
parent644340a9bdc663762a58784e0b86c87aeeb41116
Fix arg promotion to propagate the correct attrs on the calls to
promoted functions.  This is important for varargs calls in
particular.  Thanks to duncan for providing a great testcase.

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