Skip to content

LLVM 18 cannot read llvm-ir produced by rustc 1.72.1 #68281

Closed
@glandium

Description

@glandium

This is a regression from 6251134.

05b86a8 addressed a part of the regression. For instance, this:

  call void @llvm.dbg.value(metadata i64 or (i64 zext (i32 ptrtoint (ptr @anon.436463c58f189989edb51bc04335cb6d.21 to i32) to i64), i64 shl (i64 zext (i32 trunc (i64 lshr (i64 ptrtoint (ptr @anon.436463c58f189989edb51bc04335cb6d.21 to i64), i64 32) to i32) to i64), i64 32)), metadata !4453, metadata !DIExpression(DW_OP_LLVM_fragment, 64, 64)), !dbg !4493

used to cause an error but doesn't anymore with that fix.

What still causes an error, though, is e.g.:

  call void @llvm.dbg.value(metadata ptr inttoptr (i64 or (i64 zext (i32 ptrtoint (ptr @anon.202156da7d09c46fe0b29195d5b08186.240 to i32) to i64), i64 shl (i64 zext (i32 trunc (i64 lshr (i64 ptrtoint (ptr @anon.202156da7d09c46fe0b29195d5b08186.240 to i64), i64 32) to i32) to i64), i64 32)) to ptr), metadata !14853, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 64)), !dbg !14944

from this object file: https://drive.google.com/file/d/17fb-_f363yRFibtkJjRQ5qihnAuOPbdc/view?usp=sharing

Cc: @nikic

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