Commit ebcb61e
committed
Pass std::initializer_list by value to ArrayRef constructor.
The std::initializer_list is a light-weight object, in general, it is
passed by value.
This would also avoid a false positive when adding the lifetimebound
annotation.
```
ArrayRef<int> foo(std::initializer_list<int> list) {
return ArrayRef<int>(list);
}
```1 parent 76f4f95 commit ebcb61e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments