Skip to content

Commit bad0f12

Browse files
committed
Pass context as reference in build()
1 parent d323267 commit bad0f12

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
@@ -3037,7 +3037,7 @@ ProgramManager::build(const DevImgPlainWithDeps &DevImgWithDeps,
30373037
const std::shared_ptr<device_image_impl> &MainInputImpl =
30383038
getSyclObjImpl(DevImgWithDeps.getMain());
30393039

3040-
const context Context = MainInputImpl->get_context();
3040+
const context &Context = MainInputImpl->get_context();
30413041
const ContextImplPtr &ContextImpl = detail::getSyclObjImpl(Context);
30423042

30433043
std::vector<const RTDeviceBinaryImage *> BinImgs;

0 commit comments

Comments
 (0)