aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2022-08-11 11:48:28 +0200
committerIlya Biryukov <ibiryukov@google.com>2022-08-11 11:53:24 +0200
commit7c80c4d67716308dc0f382be88bbe73dd293892c (patch)
tree57418acee2dd99cf1a09bd3009d7493bcf30cbeb /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
parent940733d6a0a92245912361bf116514172a15f4f8 (diff)
downloadllvm-7c80c4d67716308dc0f382be88bbe73dd293892c.zip
llvm-7c80c4d67716308dc0f382be88bbe73dd293892c.tar.gz
llvm-7c80c4d67716308dc0f382be88bbe73dd293892c.tar.bz2
[MC] NFC. Avoid redundant copies when constructing StructFieldInfo
Follow-up after D131595, see comments in the review thread. The intention of having two constructors was to minimize the copies of `vector`, but a lack of `std::move` on the call site caused the wrong constructor to be called. Switched to a single constructor that accepts a value. Accepting by value allows to have a single constructor and still decide to copy or move on the call site.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions