Skip to content

Commit

Permalink
WebGPU::ShaderModule::convertCheckResult() should use std::forward
Browse files Browse the repository at this point in the history
<https://webkit.org/b/241437>
<rdar://94662366>

Reviewed by Darin Adler.

* Source/WebGPU/WebGPU/ShaderModule.mm:
(WebGPU::ShaderModule::convertCheckResult):
- Switch from WTFMove() to std::forward().

Canonical link: https://commits.webkit.org/251415@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295409 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
David Kilzer committed Jun 9, 2022
1 parent 82a311d commit 857bb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebGPU/WebGPU/ShaderModule.mm
Expand Up @@ -122,7 +122,7 @@
auto ShaderModule::convertCheckResult(std::variant<WGSL::SuccessfulCheck, WGSL::FailedCheck>&& checkResult) -> CheckResult
{
return WTF::switchOn(WTFMove(checkResult), [](auto&& check) -> CheckResult {
return WTFMove(check);
return std::forward<decltype(check)>(check);
});
}

Expand Down

0 comments on commit 857bb1c

Please sign in to comment.