Commit 34a3fb9
authored
[Libomptarget][NFC] Remove use of VLA in the AMDGPU plugin (#69761)
Summary:
We should not rely on a VLA in C++ for the handling of this string. The
size is a true runtime value so we cannot rely on constexpr handling. We
simply use a small vector, whose default size is most likely large
enough to handle whatever size gets output within the stack, but is safe
in cases where it is not.1 parent 1d4601a commit 34a3fb9
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2869 | 2869 | | |
2870 | 2870 | | |
2871 | 2871 | | |
2872 | | - | |
2873 | | - | |
2874 | | - | |
| 2872 | + | |
| 2873 | + | |
2875 | 2874 | | |
2876 | 2875 | | |
2877 | 2876 | | |
2878 | | - | |
| 2877 | + | |
2879 | 2878 | | |
2880 | | - | |
| 2879 | + | |
2881 | 2880 | | |
2882 | 2881 | | |
2883 | 2882 | | |
| |||
0 commit comments