forked from OSchip/llvm-project
[Reproducer] Make 'reproducer generate' a NOOP during replay.
Instead of filtering out the 'reproducer generate' command during replay, just make the operation a NOOP. llvm-svn: 355009
This commit is contained in:
parent
3e804d2581
commit
2dca65388c
|
@ -37,8 +37,13 @@ protected:
|
|||
auto &r = repro::Reproducer::Instance();
|
||||
if (auto generator = r.GetGenerator()) {
|
||||
generator->Keep();
|
||||
} else if (r.GetLoader()) {
|
||||
// Make this operation a NOP in replay mode.
|
||||
result.SetStatus(eReturnStatusSuccessFinishNoResult);
|
||||
return result.Succeeded();
|
||||
} else {
|
||||
result.AppendErrorWithFormat("Unable to get the reproducer generator");
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue