some extra info, im getting this:
/home/build/YPKG/root/llvm/build/llvm-project-15.0.7.src/llvm/lib/IR/Instructions.cpp:3187: static llvm::CastInst *llvm::CastInst::Create(Instruction::CastOps, llvm::Value *, llvm::Type *, const llvm::Twine &, llvm::Instruction *): Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed.
but i have no idea what it is, no experience with llvm