[PATCH] D45625: [llvm-exegesis] Fix use after free.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 13 07:51:48 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330026: [llvm-exegesis] Fix use after free. (authored by courbet, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D45625
Files:
llvm/trunk/tools/llvm-exegesis/lib/InMemoryAssembler.cpp
Index: llvm/trunk/tools/llvm-exegesis/lib/InMemoryAssembler.cpp
===================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/InMemoryAssembler.cpp
+++ llvm/trunk/tools/llvm-exegesis/lib/InMemoryAssembler.cpp
@@ -215,7 +215,7 @@
// Adding the generated object file containing the assembled function.
// The ExecutionEngine makes sure the object file is copied into an
// executable page.
- ExecEngine->addObjectFile(ObjHolder.takeBinary().first);
+ ExecEngine->addObjectFile(std::move(ObjHolder));
// Setting function
FunctionBytes =
llvm::StringRef(reinterpret_cast<const char *>(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45625.142411.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180413/8c70f49b/attachment.bin>
More information about the llvm-commits
mailing list