[LLVMdev] Geting the size of a structure?

Evan Jones ejones at uwaterloo.ca
Thu Apr 21 15:57:16 PDT 2005


On Thu, 2005-21-04 at 17:00 -0500, Alkis Evlogimenos wrote:
> You may want to look at ConstantExpr::getSizeOf(const Type*)

Ah! Very clever! Of course, you cast null to an array, then get a
pointer to the first element! I never would have thought of that.

Thanks for helping me out,

Evan Jones





More information about the llvm-dev mailing list