[LLVMdev] newbie question for type comparison

Duncan Sands baldrick at free.fr
Mon Apr 21 12:26:49 PDT 2008


Hi,

> 2. For TargetData size, for those struct allocations that I don't know
> its size in advance, I want to get its size and use the size in a memcpy
> function, which makes a copy of the struct. Is the ABI type size the
> correct one?

yes ABI size is the right one to use for alloca.

Ciao,

Duncan.



More information about the llvm-dev mailing list