[llvm] [SYCL][LLVM] Adding property set I/O library for SYCL (PR #110771)
Arvind Sudarsanam via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 15 06:34:12 PDT 2024
================
@@ -66,8 +66,13 @@ class SYCLPropertyValue {
return static_cast<Type>(T);
}
- ~SYCLPropertyValue() {}
-
+ ~SYCLPropertyValue() {
+ if (std::holds_alternative<std::byte *>(Val)) {
+ auto ByteArrayVal = std::get<std::byte *>(Val);
+ if (ByteArrayVal)
+ delete[] ByteArrayVal;
----------------
asudarsa wrote:
Hi @arsenm
I will give it another shot. I had a bit of an issue in getting unique_ptr to work with remainder of the code. I must be missing something. I will put up a change soon. Thanks again for looking into this.
Sincerely
https://github.com/llvm/llvm-project/pull/110771
More information about the llvm-commits
mailing list