[llvm] r278907 - [LTO] Introduce an Output class to wrap the output stream creation (NFC)

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 00:57:33 PDT 2016


On Tue, Aug 16, 2016 at 11:31 PM Mehdi Amini via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: mehdi_amini
> Date: Wed Aug 17 01:23:09 2016
> New Revision: 278907
>
> URL: http://llvm.org/viewvc/llvm-project?rev=278907&view=rev
> Log:
> [LTO] Introduce an Output class to wrap the output stream creation (NFC)
>
> Summary:
> While NFC for now, this will allow more flexibility on the client side
> to hold state necessary to back up the stream.
> Also when adding caching, this class will grow in complexity.
>

I think this introduced a use-after-free here:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/15580/steps/check-llvm%20asan/logs/stdio

Also seems to have made a Windows bot red which often happens with
Twine-related use-after-free.

I think I've fixed this in r278912, but figured I'd mention it in case you
end up wanting a different fix.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160817/45d0e347/attachment.html>


More information about the llvm-commits mailing list