Call parameter type does not match function signature! 解决

报错:

Call parameter type does not match function signature!
%7 = load i8*, i8** %6
i32 %63 = call i32 @as_copycal(i8* %39, i8* %55, i8* %7)
LLVM ERROR: Broken function found, compilation aborted!

 

原因:函数传参 类型不匹配。传错参数了,函数声明时形参要求i32,实际传入i8*

posted @ 2023-05-06 13:32  园友1683564  阅读(245)  评论(0编辑  收藏  举报