We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, developers of llvm-hs-quote.
llvm-hs-quote: e2dec47 stack solver: lts-10.3 (this is the same as llvm-hs-quote)
llvm-hs-quote
I had a error with the following code.
module10 :: AST.Module module10 = [Quote.LLVM.llmod| define void @f() { entry: call void @g() ret void } define void @g() { entry: ret void } |] toLLVM :: AST.Module -> IO () toLLVM mod = Context.withContext $ \ctx -> do llvm <- Module.withModuleFromAST ctx mod Module.moduleLLVMAssembly BS.putStrLn llvm main = toLLVM module10
I think the error occurs in call void @g().
call void @g()
EncodeException "The serialized GlobalReference has type PointerType {pointerReferent = FunctionType {resultType = VoidType, argumentTypes = [], isVarArg = False}, pointerAddrSpace = AddrSpace 0} but should have type FunctionType {resultType = VoidType, argumentTypes = [], isVarArg = False}"
The text was updated successfully, but these errors were encountered:
Set type of function references to function pointers
1497273
see #15
Should be fixed in 1497273
Sorry, something went wrong.
Thank you very much for your quick fixing! You solved my problem.
No branches or pull requests
Hi, developers of llvm-hs-quote.
Environment
llvm-hs-quote
: e2dec47stack solver: lts-10.3 (this is the same as
llvm-hs-quote
)Error
I had a error with the following code.
I think the error occurs in
call void @g()
.Error message
The text was updated successfully, but these errors were encountered: