Make one of the AttributeSet ctors maintain the invariant that the
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 2 Aug 2013 22:29:40 +0000 (22:29 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 2 Aug 2013 22:29:40 +0000 (22:29 +0000)
commit7bba9c5c0a5235f585ee4bd3efec29e0982de3f8
treea71aaf7262c355f807479751ebe690794b2ce8d6
parent6bf104b165cec9c14dacf10bf3380eeb32c278d7
Make one of the AttributeSet ctors maintain the invariant that the
attribute list is ordered by index.

Differential Revision: http://llvm-reviews.chandlerc.com/D1265

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187682 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/AttributeImpl.h
lib/IR/Attributes.cpp
unittests/IR/AttributesTest.cpp