Skip to content

Commit cd8e1d5

Browse files
committed
Applied suggested changes
1 parent 60b3e9a commit cd8e1d5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,9 +1619,8 @@ ProgramManager::compile(const device_image_plain &DeviceImage,
16191619

16201620
// TODO: Handle zero sized Device list.
16211621

1622-
const RTDeviceBinaryImage *ImgPtr = InputImpl->get_bin_image_ref();
1623-
const RTDeviceBinaryImage &Img = *ImgPtr;
1624-
const char *compileOptions = Img.getCompileOptions();
1622+
const char *compileOptions =
1623+
InputImpl->get_bin_image_ref()->getCompileOptions();
16251624
RT::PiResult Error = Plugin.call_nocheck<PiApiKind::piProgramCompile>(
16261625
ObjectImpl->get_program_ref(), /*num devices=*/Devs.size(),
16271626
PIDevices.data(), compileOptions,
@@ -1657,9 +1656,7 @@ ProgramManager::link(const std::vector<device_image_plain> &DeviceImages,
16571656
for (auto &DeviceImage : DeviceImages) {
16581657
const std::shared_ptr<device_image_impl> &InputImpl =
16591658
getSyclObjImpl(DeviceImage);
1660-
const RTDeviceBinaryImage *ImgPtr = InputImpl->get_bin_image_ref();
1661-
const RTDeviceBinaryImage &Img = *ImgPtr;
1662-
linkOptions.push_back(Img.getLinkOptions());
1659+
linkOptions.push_back(InputImpl->get_bin_image_ref()->getLinkOptions());
16631660
}
16641661
std::string linkOptionsStr;
16651662
for (auto str : linkOptions) {

0 commit comments

Comments
 (0)