forked from OSchip/llvm-project
[Bugpoint] fix another use-after-move. NFC
Summary: This was flagged in https://www.viva64.com/en/b/0629/ under "Snippet No. 7". These statements are order independent, short of the use-after-move. Reviewers: echristo, srhines, RKSimon Reviewed By: RKSimon Subscribers: dblaikie, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D62114 llvm-svn: 362267
This commit is contained in:
parent
30a58f63af
commit
8b1f64f63d
|
@ -705,8 +705,8 @@ static Expected<bool> TestOptimizer(BugDriver &BD, std::unique_ptr<Module> Test,
|
|||
if (!Optimized) {
|
||||
errs() << " Error running this sequence of passes"
|
||||
<< " on the input program!\n";
|
||||
BD.setNewProgram(std::move(Test));
|
||||
BD.EmitProgressBitcode(*Test, "pass-error", false);
|
||||
BD.setNewProgram(std::move(Test));
|
||||
if (Error E = BD.debugOptimizerCrash())
|
||||
return std::move(E);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue