Skip to content

Commit

Permalink
compiler: fixes false-positive invalid ptr detection in -race (#1376)
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake authored Apr 17, 2023
1 parent 9aca08c commit 6a4bdd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/engine/compiler/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ func (si *stackIterator) Next() bool {
si.base = int(si.stack[frame+1] >> 3)
// *function lives in the third field of callFrame struct. This must be
// aligned with the definition of callFrame struct.
si.fn = (*function)(unsafe.Pointer(uintptr(si.stack[frame+2])))
si.fn = *(**function)(unsafe.Pointer(&si.stack[frame+2]))
return si.fn != nil
}

Expand Down

0 comments on commit 6a4bdd3

Please sign in to comment.