[llvm] a58548f - SymbolRewriter: Convert test to opaque pointers
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 12:21:04 PST 2022
Author: Matt Arsenault
Date: 2022-12-02T15:20:56-05:00
New Revision: a58548f5967cda192e9de08e05f977a0d7cfddba
URL: https://github.com/llvm/llvm-project/commit/a58548f5967cda192e9de08e05f977a0d7cfddba
DIFF: https://github.com/llvm/llvm-project/commit/a58548f5967cda192e9de08e05f977a0d7cfddba.diff
LOG: SymbolRewriter: Convert test to opaque pointers
Added:
Modified:
llvm/test/SymbolRewriter/rewrite.ll
Removed:
################################################################################
diff --git a/llvm/test/SymbolRewriter/rewrite.ll b/llvm/test/SymbolRewriter/rewrite.ll
index 1fd0b3141a8bd..9f7b3cbde39bf 100644
--- a/llvm/test/SymbolRewriter/rewrite.ll
+++ b/llvm/test/SymbolRewriter/rewrite.ll
@@ -20,11 +20,11 @@ define i32 @caller() {
}
%struct.S = type { i8 }
- at _ZN1SC1Ev = alias void (%struct.S*), void (%struct.S*)* @_ZN1SC2Ev
-define void @_ZN1SC2Ev(%struct.S* %this) unnamed_addr align 2 {
+ at _ZN1SC1Ev = alias void (ptr), ptr @_ZN1SC2Ev
+define void @_ZN1SC2Ev(ptr %this) unnamed_addr align 2 {
entry:
- %this.addr = alloca %struct.S*, align 4
- store %struct.S* %this, %struct.S** %this.addr, align 4
+ %this.addr = alloca ptr, align 4
+ store ptr %this, ptr %this.addr, align 4
ret void
}
More information about the llvm-commits
mailing list