Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
c4ee1296
Commit
c4ee1296
authored
Apr 25, 2019
by
Shucai Xiao
Browse files
fixed review comments.
parent
cd045c48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/include/migraphx/program.hpp
src/include/migraphx/program.hpp
+1
-1
src/program.cpp
src/program.cpp
+3
-3
No files found.
src/include/migraphx/program.hpp
View file @
c4ee1296
...
...
@@ -127,7 +127,7 @@ struct program
friend
bool
operator
!=
(
const
program
&
x
,
const
program
&
y
)
{
return
!
(
x
==
y
);
}
private:
void
copy
(
const
program
&
p
);
void
assign
(
const
program
&
p
);
private:
std
::
unique_ptr
<
program_impl
>
impl
;
...
...
src/program.cpp
View file @
c4ee1296
...
...
@@ -89,7 +89,7 @@ program::program(program&&) noexcept = default;
program
::~
program
()
noexcept
=
default
;
// copy constructor
program
::
program
(
const
program
&
p
)
{
copy
(
p
);
}
program
::
program
(
const
program
&
p
)
{
assign
(
p
);
}
// copy assignment operator
program
&
program
::
operator
=
(
program
p
)
...
...
@@ -98,7 +98,7 @@ program& program::operator=(program p)
return
*
this
;
}
void
program
::
copy
(
const
program
&
p
)
void
program
::
assign
(
const
program
&
p
)
{
// clean the current program
if
(
!
impl
)
...
...
@@ -107,7 +107,7 @@ void program::copy(const program& p)
}
else
if
(
!
impl
->
instructions
.
empty
())
{
remove_
instructions
(
begin
(),
end
()
);
impl
->
instructions
.
clear
(
);
}
impl
->
ctx
=
p
.
impl
->
ctx
;
...
...
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