[llvm-commits] [llvm-gcc-4.2] r49390 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Devang Patel dpatel at apple.com
Wed Apr 9 09:05:49 PDT 2008


On Apr 9, 2008, at 12:51 AM, Duncan Sands wrote:

> Hi Devang,
>
>> +  if (Client.isAggrReturn()) {
>> +    const StructType *STy = cast<StructType>(Call->getType());
>> +    unsigned NumElements = STy->getNumElements();
>> +    for (unsigned i = 0; i < NumElements; i++) {
>> +      //DPATEL
>> +      Value *GEP = Builder.CreateStructGEP(DestLoc->Ptr, i,  
>> "mrv_gep");
>
> is it clear that DestLoc->Ptr has the right type here?

Yes, there are assertions to check this earlier.
>
>
> Ciao,
>
> Duncan.

-
Devang






More information about the llvm-commits mailing list