LLVM IR parse error when the llvmlite dependency from 0.36.0 to 0.40.0 (llvm upgrade to 14)

Recently I would like to upgrade the llvmlite dependency of my project from 0.36.0 to 0.40.0 to pick up llvm13 feature. Encounter parse error after the upgrading:

RuntimeError: LLVM IR parsing error
:86559:62: error: expected ‘(’
declare void @“llvm.memcpy.p0i8.p0i8.i64”(i8* nocapture sret %“.1”, i8* nocapture %“.2”, i64 %“.3”, i32 %“.4”, i1 zeroext %“.5”) argmemonly nounwind

Could anyone point out the syntax error in my generated IR?

sret is missing its type parameter: LLVM Language Reference Manual — LLVM 17.0.0git documentation

thx! It solves my problem.