diff options
author | Reid Kleckner <rnk@google.com> | 2017-04-28 21:48:28 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-04-28 21:48:28 +0000 |
commit | 608c8b63b3945f4a17eadb6dd0a973b1b049bfe2 (patch) | |
tree | 3e946806c348fd1196aa35871e7abfaf5e8712b9 /llvm/unittests/IR/AttributesTest.cpp | |
parent | e8dea1bc562fc949f1d9318c4b38f3a7e79ba27f (diff) | |
download | bcm5719-llvm-608c8b63b3945f4a17eadb6dd0a973b1b049bfe2.tar.gz bcm5719-llvm-608c8b63b3945f4a17eadb6dd0a973b1b049bfe2.zip |
[IR] Make add/remove Attributes use AttrBuilder instead of AttributeList
This change cleans up call sites and avoids creating temporary
AttributeList objects.
NFC
llvm-svn: 301697
Diffstat (limited to 'llvm/unittests/IR/AttributesTest.cpp')
-rw-r--r-- | llvm/unittests/IR/AttributesTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/AttributesTest.cpp b/llvm/unittests/IR/AttributesTest.cpp index 7c3df2e19e8..0df7a847f8a 100644 --- a/llvm/unittests/IR/AttributesTest.cpp +++ b/llvm/unittests/IR/AttributesTest.cpp @@ -45,7 +45,7 @@ TEST(Attributes, Ordering) { AttributeList::get(C, 1, Attribute::SExt)}; AttributeList SetA = AttributeList::get(C, ASs); - AttributeList SetB = SetA.removeAttributes(C, 1, ASs[1]); + AttributeList SetB = SetA.removeAttributes(C, 1, ASs[1].getAttributes(1)); EXPECT_NE(SetA, SetB); } |