mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 17:32:36 +00:00
[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
6883c99c6d
commit
0af27a4d2c
@ -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…
x
Reference in New Issue
Block a user