projects
/
platform
/
upstream
/
SPIRV-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88409b7
)
Make a string parameter const ref
author
David Neto
<dneto@google.com>
Tue, 19 Dec 2017 18:52:23 +0000
(13:52 -0500)
committer
David Neto
<dneto@google.com>
Tue, 19 Dec 2017 23:42:35 +0000
(18:42 -0500)
test/val/val_primitives_test.cpp
patch
|
blob
|
history
diff --git
a/test/val/val_primitives_test.cpp
b/test/val/val_primitives_test.cpp
index
6cccfa1
..
5ef4e63
100644
(file)
--- a/
test/val/val_primitives_test.cpp
+++ b/
test/val/val_primitives_test.cpp
@@
-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