[llvm] r362267 - [Bugpoint] fix another use-after-move. NFC
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 14:36:22 PDT 2019
Author: nickdesaulniers
Date: Fri May 31 14:36:21 2019
New Revision: 362267
URL: http://llvm.org/viewvc/llvm-project?rev=362267&view=rev
Log:
[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
Modified:
llvm/trunk/tools/bugpoint/Miscompilation.cpp
Modified: llvm/trunk/tools/bugpoint/Miscompilation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/Miscompilation.cpp?rev=362267&r1=362266&r2=362267&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/Miscompilation.cpp (original)
+++ llvm/trunk/tools/bugpoint/Miscompilation.cpp Fri May 31 14:36:21 2019
@@ -705,8 +705,8 @@ static Expected<bool> TestOptimizer(BugD
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;
More information about the llvm-commits
mailing list