Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module validation failed with default debug #4254

Closed
asterite opened this issue Apr 7, 2017 · 0 comments
Closed

Module validation failed with default debug #4254

asterite opened this issue Apr 7, 2017 · 0 comments
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler
Milestone

Comments

@asterite
Copy link
Member

asterite commented Apr 7, 2017

class Foo
  def self.one
    TWO.two { three }
    self
  end

  def self.three
    1 + 2
  end

  def two(&block)
    block
  end
end

ONE = Foo.one
TWO = Foo.new

ONE.three

Gives:

Module validation failed: !dbg attachment points at wrong subprogram for function
!4 = distinct !DISubprogram(name: "one", linkageName: "one", scope: !5, file: !5, line: 2, type: !6, isLocal: true, isDefinition: true, scopeLine: 2, isOptimized: false, unit: !0, variables: !2)
i32 ()* @"*Foo::one:Foo:Class"
  %0 = alloca %"->", !dbg !9
!9 = !DILocation(line: 9, column: 5, scope: !10)
!10 = distinct !DISubprogram(name: "three", linkageName: "three", scope: !5, file: !5, line: 7, type: !6, isLocal: true, isDefinition: true, scopeLine: 7, isOptimized: false, unit: !0, variables: !2)
!10 = distinct !DISubprogram(name: "three", linkageName: "three", scope: !5, file: !5, line: 7, type: !6, isLocal: true, isDefinition: true, scopeLine: 7, isOptimized: false, unit: !0, variables: !2)
@asterite asterite added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler labels Apr 7, 2017
@asterite asterite added this to the Next milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler
Projects
None yet
Development

No branches or pull requests

1 participant