diff --git a/llvm/unittests/IR/AttributesTest.cpp b/llvm/unittests/IR/AttributesTest.cpp index b713cd38d2f51..0fdb5a9c5a688 100644 --- a/llvm/unittests/IR/AttributesTest.cpp +++ b/llvm/unittests/IR/AttributesTest.cpp @@ -447,8 +447,8 @@ TEST(Attributes, SetIntersect) { ConstantRange CR0(APInt(32, 0), APInt(32, 10)); ConstantRange CR1(APInt(32, 15), APInt(32, 20)); - ArrayRef CRL0 = {CR0}; - ArrayRef CRL1 = {CR0, CR1}; + ConstantRange CRL0[] = {CR0}; + ConstantRange CRL1[] = {CR0, CR1}; Type *T0 = Type::getInt32Ty(C0); Type *T1 = Type::getInt64Ty(C0); Attribute Attr0 = BuildAttr(C0, Kind, V0, T0, CR0, CRL0);