[LLVMdev] StructType opaque->sized

Rick Mann rmann at latencyzero.com
Tue Jan 22 02:08:02 PST 2013

On Jan 22, 2013, at 1:54 , Duncan Sands <baldrick at free.fr> wrote:

> this is the standard way of making a struct type, so I suspect you made a
> mistake such as adding an opaque field to the struct (this will stop it from
> having a size).

Thank you, Duncan. You're absolutely right. I thought I had confirmed the broken behavior with a simple test case, but that had a problem. I discovered in my actual struct that I was setting an element to be a function type, not a pointer-to-function type, just as you were writing your reply, I'd bet.



More information about the llvm-dev mailing list