Skip to content

Commit

Permalink
WIP reflect refactor 3
Browse files Browse the repository at this point in the history
  • Loading branch information
aykevl committed Sep 5, 2022
1 parent d5e4b16 commit 1d996a4
Show file tree
Hide file tree
Showing 24 changed files with 755 additions and 1,236 deletions.
4 changes: 2 additions & 2 deletions compiler/defer.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (b *builder) createDefer(instr *ssa.Defer) {
typecode := b.CreateExtractValue(itf, 0, "invoke.func.typecode")
receiverValue := b.CreateExtractValue(itf, 1, "invoke.func.receiver")
values = []llvm.Value{callback, next, typecode, receiverValue}
valueTypes = append(valueTypes, b.uintptrType, b.i8ptrType)
valueTypes = append(valueTypes, b.i8ptrType, b.i8ptrType)
for _, arg := range instr.Call.Args {
val := b.getValue(arg)
values = append(values, val)
Expand Down Expand Up @@ -472,7 +472,7 @@ func (b *builder) createRunDefers() {
valueTypes = append(valueTypes, b.getFuncType(callback.Signature()))
} else {
//Expect typecode
valueTypes = append(valueTypes, b.uintptrType, b.i8ptrType)
valueTypes = append(valueTypes, b.i8ptrType, b.i8ptrType)
}

for _, arg := range callback.Args {
Expand Down
Loading

0 comments on commit 1d996a4

Please sign in to comment.