Skip to content

Commit 33bf2a7

Browse files
[SYCL] Fix CTAD-related issue with std::lock_guard (#8883)
This patch fixes post-commit failure introduced in #7468: ``` /Users/runner/work/llvm/llvm/src/sycl/source/detail/program_manager/program_manager.cpp:1324:9: error: 'lock_guard' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported] std::lock_guard HostPipesGuard(m_HostPipesMutex); ^ ```
1 parent 4e67dd9 commit 33bf2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ void ProgramManager::addImages(pi_device_binaries DeviceBinary) {
13211321
}
13221322
// ... and initialize associated host_pipe information
13231323
{
1324-
std::lock_guard HostPipesGuard(m_HostPipesMutex);
1324+
std::lock_guard<std::mutex> HostPipesGuard(m_HostPipesMutex);
13251325
auto HostPipes = Img->getHostPipes();
13261326
for (const pi_device_binary_property &HostPipe : HostPipes) {
13271327
ByteArray HostPipeInfo = DeviceBinaryProperty(HostPipe).asByteArray();

0 commit comments

Comments
 (0)