Skip to content

Commit 8b1f64f

Browse files
committedMay 31, 2019
[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
1 parent 30a58f6 commit 8b1f64f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎llvm/tools/bugpoint/Miscompilation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ static Expected<bool> TestOptimizer(BugDriver &BD, std::unique_ptr<Module> Test,
705705
if (!Optimized) {
706706
errs() << " Error running this sequence of passes"
707707
<< " on the input program!\n";
708-
BD.setNewProgram(std::move(Test));
709708
BD.EmitProgressBitcode(*Test, "pass-error", false);
709+
BD.setNewProgram(std::move(Test));
710710
if (Error E = BD.debugOptimizerCrash())
711711
return std::move(E);
712712
return false;

0 commit comments

Comments
 (0)
Please sign in to comment.