weld-project/weld

Module verification failed: Intrinsic has incorrect argument type

segeljakt opened this issue · 4 comments

When compiling this code:

||
  result(
    for(
      [],
      groupmerger[i32,i32],
      |b:groupmerger[i32,i32],i:i64,e:{i32,i32}| merge(b,e)
    )
  )

I get:

Error: WeldError { message: "Module verification failed: Intrinsic has incorrect argument type!\nvoid (i8*, i8, i64, i32, i1)* @llvm.memset.p0i8.i64\nIntrinsic has incorrect argument type!\nvoid (i8*, i8, i64, i32, i1)* @llvm.memset.p0i8.i64\nIntrinsic has incorrect argument type!\nvoid (i8*, i8*, i64, i32, i1)* @llvm.memcpy.p0i8.p0i8.i64\nIntrinsic has incorrect argument type!\nvoid (i8*, i8*, i64, i32, i1)* @llvm.memcpy.p0i8.p0i8.i64\n", code: CompileError }

Am I doing something wrong here?

Ok thanks, I'll try it!

Did using LLVM 6.0 work for you?

It worked for me, I'll close this now