SymbolRewriter: Convert test to opaque pointers

This commit is contained in:
Matt Arsenault 2022-11-27 13:49:08 -05:00
parent 6362dd004a
commit a58548f596
1 changed files with 4 additions and 4 deletions

View File

@ -20,11 +20,11 @@ define i32 @caller() {
} }
%struct.S = type { i8 } %struct.S = type { i8 }
@_ZN1SC1Ev = alias void (%struct.S*), void (%struct.S*)* @_ZN1SC2Ev @_ZN1SC1Ev = alias void (ptr), ptr @_ZN1SC2Ev
define void @_ZN1SC2Ev(%struct.S* %this) unnamed_addr align 2 { define void @_ZN1SC2Ev(ptr %this) unnamed_addr align 2 {
entry: entry:
%this.addr = alloca %struct.S*, align 4 %this.addr = alloca ptr, align 4
store %struct.S* %this, %struct.S** %this.addr, align 4 store ptr %this, ptr %this.addr, align 4
ret void ret void
} }