Commit 71bdc1f
Erich Keane
[SYCL] Fix invalid use of std::move in SemaTemplateInstantiateDecl.cpp (#6868)
This being used in a loop with more than one multiversion function would
likely cause that mangle-context to be invalid. Also, the unqualified
move is discouraged.
This patch just changes the code slightly to have the lambda capture the
entire unique_ptr by reference.1 parent 01e60f7 commit 71bdc1f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6845 | 6845 | | |
6846 | 6846 | | |
6847 | 6847 | | |
6848 | | - | |
6849 | | - | |
| 6848 | + | |
| 6849 | + | |
6850 | 6850 | | |
6851 | 6851 | | |
6852 | 6852 | | |
| |||
0 commit comments