[llvm] e379094 - [IR][Attribute] Don't create dangling references (#110781)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 19:08:47 PDT 2024
Author: Vitaly Buka
Date: 2024-10-01T19:08:44-07:00
New Revision: e379094328e49731a606304f7e3559d4f1fa96f9
URL: https://github.com/llvm/llvm-project/commit/e379094328e49731a606304f7e3559d4f1fa96f9
DIFF: https://github.com/llvm/llvm-project/commit/e379094328e49731a606304f7e3559d4f1fa96f9.diff
LOG: [IR][Attribute] Don't create dangling references (#110781)
Fix #109719.
Added:
Modified:
llvm/unittests/IR/AttributesTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/IR/AttributesTest.cpp b/llvm/unittests/IR/AttributesTest.cpp
index b713cd38d2f51d..0fdb5a9c5a6886 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<ConstantRange> CRL0 = {CR0};
- ArrayRef<ConstantRange> 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);
More information about the llvm-commits
mailing list