[PATCH] D62113: [Bugpoint] fix use-after-move. NFC
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 10:53:56 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL361279: [Bugpoint] fix use-after-move. NFC (authored by nickdesaulniers, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D62113?vs=200192&id=200542#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62113/new/
https://reviews.llvm.org/D62113
Files:
llvm/trunk/tools/bugpoint/Miscompilation.cpp
Index: llvm/trunk/tools/bugpoint/Miscompilation.cpp
===================================================================
--- llvm/trunk/tools/bugpoint/Miscompilation.cpp
+++ llvm/trunk/tools/bugpoint/Miscompilation.cpp
@@ -591,9 +591,6 @@
if (Linker::linkModules(*ProgClone, std::move(Extracted)))
exit(1);
- // Set the new program and delete the old one.
- BD.setNewProgram(std::move(ProgClone));
-
// Update the list of miscompiled functions.
MiscompiledFunctions.clear();
@@ -603,6 +600,9 @@
MiscompiledFunctions.push_back(NewF);
}
+ // Set the new program and delete the old one.
+ BD.setNewProgram(std::move(ProgClone));
+
return true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62113.200542.patch
Type: text/x-patch
Size: 680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190521/7b9ece5b/attachment.bin>
More information about the llvm-commits
mailing list