We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b8e0d commit 088b3f7Copy full SHA for 088b3f7
gocore/dwarf.go
@@ -275,9 +275,9 @@ func (c typeChunk) matchingAlignment(d typeChunk) bool {
275
panic("can't check alignment of differently typed chunks")
276
}
277
if c.a >= d.a {
278
- return d.a.Sub(c.a)%c.t.Size != 0
+ return d.a.Sub(c.a)%c.t.Size == 0
279
280
- return c.a.Sub(d.a)%c.t.Size != 0
+ return c.a.Sub(d.a)%c.t.Size == 0
281
282
283
func (c typeChunk) merge(d typeChunk) typeChunk {
@@ -327,9 +327,6 @@ func (p *Program) typeHeap() {
327
if a == 0 { // nil pointer
328
return
329
330
- if t == nil {
331
- return // TODO: why?
332
- }
333
i, _ := p.findObjectIndex(a)
334
if i < 0 { // pointer doesn't point to an object in the Go heap
335
0 commit comments