summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/AttributesTest.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2017-04-28 23:01:32 +0000
committerHans Wennborg <hans@hanshq.net>2017-04-28 23:01:32 +0000
commit0f88d863b477afef36f02fd11a96abd9eb5563a5 (patch)
tree564f3c06fa76fd25d150342cb55ba3f8785e5421 /llvm/unittests/IR/AttributesTest.cpp
parente0f9e984fd7e6c02016b16eb355e788a645091ee (diff)
downloadbcm5719-llvm-0f88d863b477afef36f02fd11a96abd9eb5563a5.tar.gz
bcm5719-llvm-0f88d863b477afef36f02fd11a96abd9eb5563a5.zip
Revert r301697 "[IR] Make add/remove Attributes use AttrBuilder instead of AttributeList"
This broke the Clang build. (Clang-side patch missing?) Original commit message: > [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: 301712
Diffstat (limited to 'llvm/unittests/IR/AttributesTest.cpp')
-rw-r--r--llvm/unittests/IR/AttributesTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/AttributesTest.cpp b/llvm/unittests/IR/AttributesTest.cpp
index 0df7a847f8a..7c3df2e19e8 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].getAttributes(1));
+ AttributeList SetB = SetA.removeAttributes(C, 1, ASs[1]);
EXPECT_NE(SetA, SetB);
}
OpenPOWER on IntegriCloud