[PATCH] D66440: [ORC] fix use-after-free detected by -Wreturn-stack-address
Matthias Gehre via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 14:58:44 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL369306: [ORC] fix use-after-free detected by -Wreturn-stack-address (authored by mgehre, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D66440?vs=215983&id=215998#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66440/new/
https://reviews.llvm.org/D66440
Files:
llvm/trunk/lib/ExecutionEngine/Orc/Layer.cpp
Index: llvm/trunk/lib/ExecutionEngine/Orc/Layer.cpp
===================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/Layer.cpp
+++ llvm/trunk/lib/ExecutionEngine/Orc/Layer.cpp
@@ -51,7 +51,7 @@
StringRef IRMaterializationUnit::getName() const {
if (TSM)
return TSM.withModuleDo(
- [](const Module &M) { return M.getModuleIdentifier(); });
+ [](const Module &M) -> StringRef { return M.getModuleIdentifier(); });
return "<null module>";
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66440.215998.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190819/d6574279/attachment.bin>
More information about the llvm-commits
mailing list