[llvm-commits] [llvm] r173608 - Fix test to not use the AttributeSet's AttributeWithIndex creation method.

Bill Wendling isanbard at gmail.com
Sat Jan 26 19:39:11 PST 2013


Author: void
Date: Sat Jan 26 21:39:10 2013
New Revision: 173608

URL: http://llvm.org/viewvc/llvm-project?rev=173608&view=rev
Log:
Fix test to not use the AttributeSet's AttributeWithIndex creation method.

Modified:
    llvm/trunk/unittests/IR/AttributesTest.cpp

Modified: llvm/trunk/unittests/IR/AttributesTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/AttributesTest.cpp?rev=173608&r1=173607&r2=173608&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/AttributesTest.cpp (original)
+++ llvm/trunk/unittests/IR/AttributesTest.cpp Sat Jan 26 21:39:10 2013
@@ -21,13 +21,13 @@ TEST(Attributes, Uniquing) {
   Attribute AttrB = Attribute::get(C, Attribute::AlwaysInline);
   EXPECT_EQ(AttrA, AttrB);
 
-  AttributeWithIndex AWIs[] = {
-    AttributeWithIndex::get(C, 1, Attribute::ZExt),
-    AttributeWithIndex::get(C, 2, Attribute::SExt)
+  AttributeSet ASs[] = {
+    AttributeSet::get(C, 1, Attribute::ZExt),
+    AttributeSet::get(C, 2, Attribute::SExt)
   };
 
-  AttributeSet SetA = AttributeSet::get(C, AWIs);
-  AttributeSet SetB = AttributeSet::get(C, AWIs);
+  AttributeSet SetA = AttributeSet::get(C, ASs);
+  AttributeSet SetB = AttributeSet::get(C, ASs);
   EXPECT_EQ(SetA, SetB);
 }
 





More information about the llvm-commits mailing list