forked from OSchip/llvm-project
Fix the warning when you pass -c to step/next/si/ni.
During some cleanup the test for whether the thread plan accepted an iteration count was reversed, so we give a warning when it will actually work, and don't when it won't. <rdar://problem/32379280> llvm-svn: 303832
This commit is contained in:
parent
da8f9b5b1b
commit
d2a7e8538b
|
@ -649,7 +649,7 @@ protected:
|
|||
new_plan_sp->SetOkayToDiscard(false);
|
||||
|
||||
if (m_options.m_step_count > 1) {
|
||||
if (new_plan_sp->SetIterationCount(m_options.m_step_count)) {
|
||||
if (!new_plan_sp->SetIterationCount(m_options.m_step_count)) {
|
||||
result.AppendWarning(
|
||||
"step operation does not support iteration count.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue