Skip to content
Commit 0cf6f7b1 authored by Logan Smith's avatar Logan Smith
Browse files

[NFC][clang] 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 08eb614e
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