Skip to content

Commit

Permalink
Fix build on clang < 13 (#2888)
Browse files Browse the repository at this point in the history
An explicit std::move is needed to select the correct Error cctor.
This was introduced in c7656ef
  • Loading branch information
5p4k authored Dec 19, 2023
1 parent d10d75f commit dcae6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llpc/util/llpcShaderModuleHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ Expected<BinaryData> ShaderModuleHelper::getShaderCode(const ShaderModuleBuildIn
if (trimDebugInfo) {
auto sizeOrErr = trimSpirvDebugInfo(&shaderBinary, codeBuffer);
if (Error err = sizeOrErr.takeError())
return err;
return std::move(err);
code.codeSize = *sizeOrErr;
} else {
assert(shaderBinary.codeSize <= codeBuffer.size() * sizeof(codeBuffer.front()));
Expand Down

0 comments on commit dcae6f6

Please sign in to comment.