diff options
| author | Ilya Biryukov <ibiryukov@google.com> | 2022-08-11 11:48:28 +0200 |
|---|---|---|
| committer | Ilya Biryukov <ibiryukov@google.com> | 2022-08-11 11:53:24 +0200 |
| commit | 7c80c4d67716308dc0f382be88bbe73dd293892c (patch) | |
| tree | 57418acee2dd99cf1a09bd3009d7493bcf30cbeb /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp | |
| parent | 940733d6a0a92245912361bf116514172a15f4f8 (diff) | |
| download | llvm-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/SWIGPythonBridge.cpp')
0 files changed, 0 insertions, 0 deletions
