Skip to content

cmd/compile: no stmt flag set for two lines of code that do generate instructions #47793

@aarzilli

Description

@aarzilli
$ go version
go version go1.17 linux/amd64

it also reproduces on 1.17 windows/amd64 and 1.16.

Reproduction steps:

  1. Compile the tests of package github.com/dolthub/dolt/go/libraries/doltcore/sqle with -gcflags='all=-N -l' (commit d2c3c987593fe82e0571ffd3fda09afd340b4634 will do this)
  2. See the pcln table generated for github.com/dolthub/dolt/go/libraries/doltcore/sqle.NewTestEngine
  3. Lines 120 and 121 have instructions generated but none of them have the stmt flag set

Originally reported as go-delve/delve#2664
cc @dr2chase

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions