mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
fix: Add explicit nullptr checks
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2c37db194e
commit
43c199185a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
* Copyright (C) 2022-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -205,6 +205,7 @@ int OfflineLinker::initHardwareInfo() {
|
||||
hwInfo = *hwInfoTable[productId];
|
||||
|
||||
auto compilerProductHelper = NEO::CompilerProductHelper::create(hwInfo.platform.eProductFamily);
|
||||
UNRECOVERABLE_IF(compilerProductHelper == nullptr);
|
||||
hwInfo.ipVersion = compilerProductHelper->getHwIpVersion(hwInfo);
|
||||
auto releaseHelper = NEO::ReleaseHelper::create(hwInfo.ipVersion);
|
||||
const auto hwInfoConfig = compilerProductHelper->getHwInfoConfig(hwInfo);
|
||||
|
||||
Reference in New Issue
Block a user