[PATCH] D81525: [Support] Initialize outs() errs() nulls() once

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 04:20:29 PDT 2020


labath added a comment.

In D81525#2084544 <https://reviews.llvm.org/D81525#2084544>, @jhenderson wrote:

> In D81525#2084521 <https://reviews.llvm.org/D81525#2084521>, @labath wrote:
>
> > We could ensure that `outs()` is constructed before `errs()` even if they are not tied by default, just in case someone decides to tie them.
>
>
> Probably best thing to do if they aren't tied by default would be to provide a struct that does the tying and untying of errs()/outs() in its constructor and destructor. That way, there's no risk of things going wrong.


That sounds good too.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81525/new/

https://reviews.llvm.org/D81525





More information about the llvm-commits mailing list