I am using LLVM 10.0.0 on Mac OS.
I try to use LLVMSizeOf(type1), where type1 is a struct which contains a function pointer,
It is dumped out as
{ i8* (i32, i32) }
However I got error, at the following frame.
[libLLVM.dylib+0x2a4b74] llvm::PointerType::get(llvm::Type*, unsigned int)+0x14
Is it league to size of a struct which contains a function pointer? Do I need to do something special for it?
(I use java binding llvm, so I don’t have exact error message)