diff options
| author | Haojian Wu <hokein.wu@gmail.com> | 2024-10-24 19:27:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-24 19:27:38 +0200 |
| commit | 100582ed4f5189c661c365e1ba8b07eb3af0f844 (patch) | |
| tree | 5d5387b66264ae0b8f53a0de4b72178105ed6815 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | e2e7d565bf7228b5c4994257950c64d419cc8f03 (diff) | |
Pass std::initializer_list by value to ArrayRef constructor. (#113590)
The std::initializer_list is a lightweight object, it is passed by value
in general.
This would also avoid a false positive when adding the lifetimebound
annotation (#113547)
```
ArrayRef<int> foo(std::initializer_list<int> list) {
return ArrayRef<int>(list);
}
```
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
