[llvm-commits] [llvm-gcc-4.2] r49390 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Wed Apr 9 00:51:19 PDT 2008
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?
Ciao,
Duncan.
More information about the llvm-commits
mailing list