Skip to content

Stop forcing i1 booleans to i8 for comparison when LLVM is fixed #40980

Closed
@bstrie

Description

@bstrie

The current behavior introduced by #36958 is a workaround for the bug at #36856 . In the comment at #36958 (comment) Niko mentions that this is worth removing when the upstream LLVM bug is fixed (per that comment's suggestion I'm also presumptuously tagging this as P-medium). I know we have an upgrade to LLVM 4.0 in the works ( #37609 ), so that may fix it. However, what is our policy on compiling on old versions of LLVM, for the sake of rustc distribution in distros that ship their own LLVM? If we need to remain compatible with old versions of LLVM, then the workaround may need to exist for quite a long time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions