mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
Revert "refactor: remove excess cast to C-string and add const reference"
This reverts commit 34ee40393f.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6a7bee67e9
commit
242a31a024
@@ -936,7 +936,7 @@ int OfflineCompiler::initialize(size_t numArgs, const std::vector<std::string> &
|
||||
}
|
||||
}
|
||||
|
||||
retVal = deviceName.empty() ? OCLOC_SUCCESS : initHardwareInfo(deviceName);
|
||||
retVal = deviceName.empty() ? OCLOC_SUCCESS : initHardwareInfo(deviceName.c_str());
|
||||
if (retVal != OCLOC_SUCCESS) {
|
||||
argHelper->printf("Error: Cannot get HW Info for device %s.\n", deviceName.c_str());
|
||||
return retVal;
|
||||
|
||||
Reference in New Issue
Block a user