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

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 03:47:50 PDT 2020


jhenderson added a comment.

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.


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