[all-commits] [llvm/llvm-project] 34a3fb: [Libomptarget][NFC] Remove use of VLA in the AMDGP...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Oct 20 13:03:04 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34a3fb9f62f9334dd654eeee44c395439dae2fba
https://github.com/llvm/llvm-project/commit/34a3fb9f62f9334dd654eeee44c395439dae2fba
Author: Joseph Huber <35342157+jhuber6 at users.noreply.github.com>
Date: 2023-10-20 (Fri, 20 Oct 2023)
Changed paths:
M openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list