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
84714596
Commit
84714596
authored
Jul 09, 2018
by
Paul
Browse files
Formatting
parent
e2de3cc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/program.cpp
src/program.cpp
+2
-1
No files found.
src/program.cpp
View file @
84714596
...
@@ -62,7 +62,8 @@ instruction_ref program::remove_instruction(instruction_ref ins)
...
@@ -62,7 +62,8 @@ instruction_ref program::remove_instruction(instruction_ref ins)
instruction_ref
program
::
remove_instructions
(
instruction_ref
first
,
instruction_ref
last
)
instruction_ref
program
::
remove_instructions
(
instruction_ref
first
,
instruction_ref
last
)
{
{
if
(
first
==
last
)
return
first
;
if
(
first
==
last
)
return
first
;
// TODO: Check every element
// TODO: Check every element
assert
(
has_instruction
(
first
));
assert
(
has_instruction
(
first
));
std
::
for_each
(
first
,
last
,
[
&
](
instruction
&
ins
)
{
ins
.
clear_arguments
();
});
std
::
for_each
(
first
,
last
,
[
&
](
instruction
&
ins
)
{
ins
.
clear_arguments
();
});
...
...
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