Skip to content

Commit 96cda30

Browse files
vitalybukaSterling-Augustine
authored andcommitted
[IR][Attribute] Don't create dangling references (llvm#110781)
Fix llvm#109719.
1 parent 87de8f3 commit 96cda30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/IR/AttributesTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ TEST(Attributes, SetIntersect) {
447447

448448
ConstantRange CR0(APInt(32, 0), APInt(32, 10));
449449
ConstantRange CR1(APInt(32, 15), APInt(32, 20));
450-
ArrayRef<ConstantRange> CRL0 = {CR0};
451-
ArrayRef<ConstantRange> CRL1 = {CR0, CR1};
450+
ConstantRange CRL0[] = {CR0};
451+
ConstantRange CRL1[] = {CR0, CR1};
452452
Type *T0 = Type::getInt32Ty(C0);
453453
Type *T1 = Type::getInt64Ty(C0);
454454
Attribute Attr0 = BuildAttr(C0, Kind, V0, T0, CR0, CRL0);

0 commit comments

Comments
 (0)