Skip to content

Output of --emit-llvm -S won't assemble with llvm-as #2167

Closed
@brson

Description

@brson

If I generate the llasm for run-pass/hello.rs and run it through the in-tree version of llvm-as I get the following error:

hello.ll:10:31: error: invalid type for global variable
@rust_start = external global i32 (void (i1*, { i32, %tydesc*, i8*, i8*, i8 }*, { i32, i32, [0 x { i32, i32, [0 x i8] }*] }*)*, i32, i32, { i32, [2 x i32] }*)

The .bc file works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions