Skip to content

Commit 8b2c196

Browse files
committed
Help old GCC figure out the construction of the Expected return object.
Signed-off-by: Julian Oppermann <[email protected]>
1 parent 00fe093 commit 8b2c196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ Expected<RTCBundleInfo> jit_compiler::performPostLink(
451451
// Regain ownership of the module.
452452
MDesc.releaseModulePtr().release();
453453

454-
return BundleInfo;
454+
return std::move(BundleInfo);
455455
}
456456

457457
Expected<InputArgList>
@@ -520,5 +520,5 @@ jit_compiler::parseUserArgs(View<const char *> UserArgs) {
520520
"Runtime compilation of ESIMD kernels is not yet supported");
521521
}
522522

523-
return Expected<InputArgList>{std::move(AL)};
523+
return std::move(AL);
524524
}

0 commit comments

Comments
 (0)