[llvm] [IR][Attribute] Don't create dangling references (PR #110781)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 19:00:43 PDT 2024
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/110781
Fix #109719.
>From 081a3ba1aad375cd22183d2cb6b077874c43a27f Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Tue, 1 Oct 2024 19:00:29 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.4
---
llvm/unittests/IR/AttributesTest.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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