We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b15e201 commit 50de423Copy full SHA for 50de423
llvm/include/llvm/Support/SYCLPropertySetIO.h
@@ -66,8 +66,13 @@ class SYCLPropertyValue {
66
return static_cast<Type>(T);
67
}
68
69
- ~SYCLPropertyValue() {}
70
-
+ ~SYCLPropertyValue() {
+ if (std::holds_alternative<std::byte *>(Val)) {
71
+ auto ByteArrayVal = std::get<std::byte *>(Val);
72
+ if (ByteArrayVal)
73
+ delete[] ByteArrayVal;
74
+ }
75
76
SYCLPropertyValue() = default;
77
78
SYCLPropertyValue(Type Ty) {
0 commit comments