The undefined behaviour was detected by LLVM 17. Fix the affected functions definitions to match the expected function type.