mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +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
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2025 Intel Corporation
|
||||
* Copyright (C) 2024-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
bool pathExists(const std::string &path) {
|
||||
struct stat statbuf = {};
|
||||
|
||||
if (NEO::SysCalls::stat(path, &statbuf) == -1) {
|
||||
if (NEO::SysCalls::stat(path.c_str(), &statbuf) == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user