Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
02f762cd
Commit
02f762cd
authored
May 03, 2019
by
Paul
Browse files
Use non-const ref
parent
da728bcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/include/migraphx/instruction.hpp
src/include/migraphx/instruction.hpp
+1
-1
src/instruction.cpp
src/instruction.cpp
+1
-1
No files found.
src/include/migraphx/instruction.hpp
View file @
02f762cd
...
@@ -24,7 +24,7 @@ struct instruction
...
@@ -24,7 +24,7 @@ struct instruction
instruction
(
literal
l
);
instruction
(
literal
l
);
void
replace
(
const
operation
&
o
);
void
replace
(
operation
o
);
void
recompute_shape
();
void
recompute_shape
();
...
...
src/instruction.cpp
View file @
02f762cd
...
@@ -28,7 +28,7 @@ void instruction::replace(const shape& r)
...
@@ -28,7 +28,7 @@ void instruction::replace(const shape& r)
}
}
}
}
void
instruction
::
replace
(
const
operation
&
o
)
void
instruction
::
replace
(
operation
o
)
{
{
op
=
std
::
move
(
o
);
op
=
std
::
move
(
o
);
recompute_shape
();
recompute_shape
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment