Add and remove the attribute from the correct slot.
authorBill Wendling <isanbard@gmail.com>
Wed, 20 Feb 2013 23:04:11 +0000 (23:04 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 20 Feb 2013 23:04:11 +0000 (23:04 +0000)
commitb7a1dda9c91b3d1821f4235c35a0d62c62d18848
tree80a29abb0c5f9c66156c6d3ede166346e5283e30
parent08addcab19d1a3697477f10e9573e61945beccd7
Add and remove the attribute from the correct slot.

The slot that we're adding/removing the attribute from may not be the same as
the attribute coming in. Make sure that they match up before we try to
add/remove them.
PR15313

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175684 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Function.cpp