Skip to content

warning: enumeration values 'AllocatedPointer' and 'AllocAlign' not handled in switch #99955

Closed
@est31

Description

@est31

On recent master, compiling gives me this warning in stdout:

warning: llvm-wrapper/RustWrapper.cpp:159:11: warning: enumeration values 'AllocatedPointer' and 'AllocAlign' not handled in switch [-Wswitch]
warning:   switch (Kind) {
warning:           ^
warning: 1 warning generated.

Now, they are handled in the switch case, but are gated by LLVM_VERSION_GE. I think this is a fall out of #99574. The issue is probably fixed by adding similar gating to LLVMWrapper.h .

@rustbot label A-llvm T-compiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.T-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