aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorLogan Smith <logan.r.smith0@gmail.com>2021-12-09 15:03:19 -0800
committerLogan Smith <logan.r.smith0@gmail.com>2021-12-09 16:05:46 -0800
commit5336befe8c3cde08cec020583700b4d2ba25ac16 (patch)
tree922078d8be47a6436b04c2f463be48eb4f2ab609 /clang/lib/CodeGen/CodeGenFunction.cpp
parent5276002a89b9aeb4c5f920d627630b1637c68ddc (diff)
downloadllvm-5336befe8c3cde08cec020583700b4d2ba25ac16.zip
llvm-5336befe8c3cde08cec020583700b4d2ba25ac16.tar.gz
llvm-5336befe8c3cde08cec020583700b4d2ba25ac16.tar.bz2
[NFC][tools] 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/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions