[LLVMdev] an llvm-gcc bug

Chris Lattner sabre at nondot.org
Fri Feb 15 11:39:06 PST 2008


On Feb 15, 2008, at 11:27 AM, Dale Johannesen wrote:

>> I don't think so, I have reached the same conclusion.  You can pass
>> the gcc type into CopyAggregate, but it's recursive, and there's no
>> way to get the gcc type for the fields.  You would have to walk the
>> gcc type in parallel with the llvm type, which at best involves
>> duplicating a lot of code and is quite error prone.
>
> ...but giving up in this case is easy enough, ok, I can do that.

Cool, thanks Dale!  I think it would be reasonable to give up in  
nested struct cases, etc.  We can always improve it later, and that  
will get us the obvious case in PR1278.

-Chris



More information about the llvm-dev mailing list