Skip to content

[MIR-opt] conflicting debug info for argument #67586

Closed
@bjorn3

Description

@bjorn3
$ git clone https://github.com/ebobby/simple-raytracer.git
$ cd simple-raytracer
$ RUSTFLAGS="-Zmir-opt-level=2" cargo build
[...]
conflicting debug info for argument
  call void @llvm.dbg.declare(metadata { [0 x i8]*, i64 }* %22, metadata !534, metadata !DIExpression()), !dbg !541
!532 = !DILocalVariable(name: "code", arg: 1, scope: !528, file: !5, line: 14, type: !327)
!534 = !DILocalVariable(name: "self", arg: 1, scope: !535, file: !536, line: 2244, type: !327)
conflicting debug info for argument
  call void @llvm.dbg.declare(metadata { [0 x i8]*, i64 }* %22, metadata !534, metadata !DIExpression()), !dbg !541
!532 = !DILocalVariable(name: "code", arg: 1, scope: !528, file: !5, line: 14, type: !327)
!534 = !DILocalVariable(name: "self", arg: 1, scope: !535, file: !536, line: 2244, type: !327)
LLVM ERROR: Broken module found, compilation aborted!
error: could not compile `num-traits`.
warning: build failed, waiting for other jobs to finish...
conflicting debug info for argument
  call void @llvm.dbg.declare(metadata { [0 x i8]*, i64 }* %22, metadata !779, metadata !DIExpression()), !dbg !785
!777 = !DILocalVariable(name: "code", arg: 1, scope: !774, file: !5, line: 58, type: !480)
!779 = !DILocalVariable(name: "self", arg: 1, scope: !780, file: !706, line: 2244, type: !480)
conflicting debug info for argument
  call void @llvm.dbg.declare(metadata { [0 x i8]*, i64 }* %22, metadata !779, metadata !DIExpression()), !dbg !785
!777 = !DILocalVariable(name: "code", arg: 1, scope: !774, file: !5, line: 58, type: !480)
!779 = !DILocalVariable(name: "self", arg: 1, scope: !780, file: !706, line: 2244, type: !480)
LLVM ERROR: Broken module found, compilation aborted!
error: could not compile `arrayvec`.
warning: build failed, waiting for other jobs to finish...
conflicting debug info for argument
  call void @llvm.dbg.declare(metadata { [0 x i8]*, i64 }* %5, metadata !291, metadata !DIExpression()), !dbg !294
!289 = !DILocalVariable(name: "target", arg: 1, scope: !286, file: !5, line: 82, type: !38)
!291 = !DILocalVariable(name: "self", arg: 1, scope: !292, file: !221, line: 2934, type: !38)
conflicting debug info for argument
  call void @llvm.dbg.declare(metadata { [0 x i8]*, i64 }* %5, metadata !291, metadata !DIExpression()), !dbg !294
!289 = !DILocalVariable(name: "target", arg: 1, scope: !286, file: !5, line: 82, type: !38)
!291 = !DILocalVariable(name: "self", arg: 1, scope: !292, file: !221, line: 2934, type: !38)
LLVM ERROR: Broken module found, compilation aborted!
error: could not compile `proc-macro2`.
warning: build failed, waiting for other jobs to finish...
error: build failed

@rustbot modify labels: +A-mir +C-bug +requires-nightly

Metadata

Metadata

Assignees

Labels

A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlA-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions