Discovered while debugging CL 53644.
No test case because these are purely internal conversions that should
never end up resulting in compiler warnings or even generated code.
Updates #19683.
Change-Id: I0d9333ef2c963fa22eb9b5335bb022bcc9b25708
Reviewed-on: https://go-review.googlesource.com/58190
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
// again. Re-introduce explicit uintptr(c) conversion.
// (issue 16317).
if typ.IsUnsafePtr() {
- n = nod(OCONV, n, nil)
+ n = nodl(pos, OCONV, n, nil)
n.Type = types.Types[TUINTPTR]
}
- n = nod(OCONV, n, nil)
+ n = nodl(pos, OCONV, n, nil)
n.Type = typ
}
return n