[LLVMdev] 32 bit array size to malloc

Chris Lattner sabre at nondot.org
Thu Jun 12 08:04:45 PDT 2008


On Jun 12, 2008, at 1:09 AM, Duncan Sands wrote:
>> No, there is no good reason.  Like GEP, malloc and alloca should  
>> allow
>> the size to be either i32 or i64.
>
> Why not allow any integer type?  Wouldn't that make things more  
> uniform?

Yes it would.  I was just thinking about keeping consistency with GEP,  
but I agree that it would be nice to allow any size operand.

-Chris



More information about the llvm-dev mailing list