[llvm] 6a9043e - [Linker] Convert test to opaque pointers (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 17 03:29:04 PST 2023
Author: Nikita Popov
Date: 2023-01-17T12:28:41+01:00
New Revision: 6a9043ef2e129c6d952780eb658b580ef910e554
URL: https://github.com/llvm/llvm-project/commit/6a9043ef2e129c6d952780eb658b580ef910e554
DIFF: https://github.com/llvm/llvm-project/commit/6a9043ef2e129c6d952780eb658b580ef910e554.diff
LOG: [Linker] Convert test to opaque pointers (NFC)
Remove pointer indirections to preserve test intent.
Added:
Modified:
llvm/test/Linker/Inputs/type-unique-opaque.ll
llvm/test/Linker/type-unique-opaque.ll
Removed:
################################################################################
diff --git a/llvm/test/Linker/Inputs/type-unique-opaque.ll b/llvm/test/Linker/Inputs/type-unique-opaque.ll
index 872b601f6910..2e6f45ec84fe 100644
--- a/llvm/test/Linker/Inputs/type-unique-opaque.ll
+++ b/llvm/test/Linker/Inputs/type-unique-opaque.ll
@@ -1,6 +1,6 @@
%t = type { i8 }
-%t2 = type { %t*, i16 }
+%t2 = type { %t, i16 }
-define %t2* @f() {
- ret %t2* null
+define %t2 @f() {
+ ret %t2 { %t { i8 0 }, i16 0 }
}
diff --git a/llvm/test/Linker/type-unique-opaque.ll b/llvm/test/Linker/type-unique-opaque.ll
index b4f696699212..72466f2e134a 100644
--- a/llvm/test/Linker/type-unique-opaque.ll
+++ b/llvm/test/Linker/type-unique-opaque.ll
@@ -4,13 +4,13 @@
; not cause %u and %t to get merged.
; CHECK: %u = type opaque
-; CHECK: define %u* @g() {
+; CHECK: define %u @g(%u %a) {
%u = type opaque
-%u2 = type { %u*, i8 }
+%u2 = type { %u, i8 }
-declare %u2* @f()
+declare %u2 @f()
-define %u* @g() {
- ret %u* null
+define %u @g(%u %a) {
+ ret %u %a
}
More information about the llvm-commits
mailing list