diff --git a/test_conformance/compiler/test_unload_platform_compiler.cpp b/test_conformance/compiler/test_unload_platform_compiler.cpp index e55bd93f..bb3ee95b 100644 --- a/test_conformance/compiler/test_unload_platform_compiler.cpp +++ b/test_conformance/compiler/test_unload_platform_compiler.cpp @@ -265,7 +265,7 @@ public: Version version = get_device_cl_version(device); std::string sILVersion = get_device_il_version_string(device); if ((version >= Version(2, 1) && version < Version(3, 0)) - || (version >= Version(3, 0) && sILVersion.length() != 1)) + || (version >= Version(3, 0) && !sILVersion.empty())) { m_CreateProgramWithIL = clCreateProgramWithIL; m_enabled = true;