fix: fix issues with ubsan in shared and ocl

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-11-13 10:08:15 +00:00
committed by Compute-Runtime-Automation
parent 69b01907a9
commit cec6492cd9
6 changed files with 19 additions and 6 deletions

View File

@@ -213,6 +213,9 @@ IgcFeaturesAndWorkarounds<0>::~IgcFeaturesAndWorkarounds() {}
template <typename... ArgsT>
IgcFeaturesAndWorkarounds<0>::IgcFeaturesAndWorkarounds(ArgsT &&...args) {}
template <>
IgcFeaturesAndWorkarounds<0>::IgcFeaturesAndWorkarounds() {}
#define DEFINE_GET_SET(INTERFACE, VERSION, NAME, TYPE) \
TYPE CIF_GET_INTERFACE_CLASS(INTERFACE, VERSION)::Get##NAME() const { return (TYPE)0; } \
void CIF_GET_INTERFACE_CLASS(INTERFACE, VERSION)::Set##NAME(TYPE v) {}