Skip to content
Commit 08eb614e authored by Logan Smith's avatar Logan Smith
Browse files

[NFC][testing] Return underlying strings directly instead of OS.str()

This avoids an unnecessary copy required by 'return OS.str()', allowing
instead for NRVO or implicit move. The .str() call (which flushes the
stream) is no longer required since 65b13610,
which made raw_string_ostream unbuffered by default.

Differential Revision: https://reviews.llvm.org/D115374
parent ad17ea12
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment