mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-23 12:10:06 +00:00
Make a string parameter const ref
This commit is contained in:
parent
88409b7262
commit
c9a881ecc6
@ -68,7 +68,7 @@ OpFunctionEnd)";
|
||||
// function with the given body, but missing the final return and
|
||||
// function-end. The result is of the form where it can be used in the
|
||||
// |body| argument to GenerateShaderCode.
|
||||
std::string CallAndCallee(std::string body) {
|
||||
std::string CallAndCallee(const std::string& body) {
|
||||
std::ostringstream ss;
|
||||
ss << R"(
|
||||
%dummy = OpFunctionCall %void %foo
|
||||
|
Loading…
Reference in New Issue
Block a user