[LLVMdev] [patch] [llvm-gcc4] fix bootstrap failure

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Nov 30 11:07:34 PST 2006


On 11/30/06, Andrew Lenharth <andrewl at lenharth.org> wrote:
> The llvm_ostreams, which you take the address of go out of scope very
> quickly, and are only stored by address in the bytecode writer, thus
> the writers have a pointer to a stack allocated object they are to
> write to.  This crashes.

The attached version leaks :-)
It is a work around. If I understand correctly, the ostream wrapper is
also a temporary solution, so this might be acceptable.

> Andrew

Thanks,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-gcc.patch
Type: text/x-patch
Size: 1255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061130/aa0d2158/attachment.bin>


More information about the llvm-dev mailing list