diff options
author | Reid Kleckner <rnk@google.com> | 2017-05-02 22:07:37 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-05-02 22:07:37 +0000 |
commit | ee4930b6886d713778fff4de3948946c7658d9d9 (patch) | |
tree | 24f60ae0cadbe03c5b098d2c86bba5ebfd88636f /llvm/unittests/IR/AttributesTest.cpp | |
parent | 65134057357725c245fcfeb4b588518ef6d6db20 (diff) | |
download | bcm5719-llvm-ee4930b6886d713778fff4de3948946c7658d9d9.tar.gz bcm5719-llvm-ee4930b6886d713778fff4de3948946c7658d9d9.zip |
Re-land r301697 "[IR] Make add/remove Attributes use AttrBuilder instead of AttributeList"
This time, I fixed, built, and tested clang.
This reverts r301712.
llvm-svn: 301981
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); } |