diff options
author | Logan Smith <logan.r.smith0@gmail.com> | 2021-12-09 14:55:44 -0800 |
---|---|---|
committer | Logan Smith <logan.r.smith0@gmail.com> | 2021-12-09 16:05:46 -0800 |
commit | 08eb614e309048b695a9eb0d94e636b2324de094 (patch) | |
tree | 06e13f865753f6c1e29fccd75146b76c9fe85dcb /clang/lib/Basic/Version.cpp | |
parent | ad17ea12e70abb05b6984f530618131181be9dad (diff) | |
download | llvm-08eb614e309048b695a9eb0d94e636b2324de094.zip llvm-08eb614e309048b695a9eb0d94e636b2324de094.tar.gz llvm-08eb614e309048b695a9eb0d94e636b2324de094.tar.bz2 |
[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 65b13610a5226b84889b923bae884ba395ad084d,
which made raw_string_ostream unbuffered by default.
Differential Revision: https://reviews.llvm.org/D115374
Diffstat (limited to 'clang/lib/Basic/Version.cpp')
0 files changed, 0 insertions, 0 deletions