Skip to content

Build fails with clang >= 22 #5032

@tstellar

Description

@tstellar

Build errors:

/builddir/build/BUILD/fex-emu-2509.1-build/FEX-FEX-2509.1/ThunkLibs/Generator/analysis.cpp:316:103: error: attempt to use a deleted function
  316 |           auto repack_info_it = types.emplace(context.getCanonicalType(annotated_member->getParent()->getTypeForDecl()), RepackedType {}).first;
      |                                                                                                       ^
/usr/include/clang/AST/Decl.h:3982:15: note: 'getTypeForDecl' has been explicitly marked deleted here
 3982 |   const Type *getTypeForDecl() const = delete;
      |               ^
/builddir/build/BUILD/fex-emu-2509.1-build/FEX-FEX-2509.1/ThunkLibs/Generator/analysis.cpp:501:50: error: no member named 'getTypePtr' in 'clang::Type'
  501 |             types.emplace(context.getSizeType()->getTypePtr(), RepackedType {});
      |                           ~~~~~~~~~~~~~~~~~~~~~~~^
2 errors generated.

It looks like the first error was because of this change in clang: llvm/llvm-project@91cdd35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions