zturner added a subscriber: ruiu. zturner added a comment. addNamedStream takes ownership by making a copy, although I could perhaps make this more explicit by making the function accept a std::string https://reviews.llvm.org/D44328