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

Andrew Lenharth andrewl at lenharth.org
Thu Nov 30 08:36:44 PST 2006


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.

Andrew

On 11/30/06, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> The attached patch fixes a bootstrap failure introduced by the use of
> llvm_streams.
>
> Best Regards,
> Rafael
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
>




More information about the llvm-dev mailing list