[PATCH] D62112: [ORC] fix use-after-move. NFC

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 15:17:34 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL361203: [ORC] fix use-after-move. NFC (authored by nickdesaulniers, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D62112?vs=200191&id=200365#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62112/new/

https://reviews.llvm.org/D62112

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
@@ -87,17 +87,15 @@
 
 #ifndef NDEBUG
   auto &ES = R.getTargetJITDylib().getExecutionSession();
+  auto &N = R.getTargetJITDylib().getName();
 #endif // NDEBUG
 
   auto Lock = TSM.getContextLock();
-  LLVM_DEBUG(ES.runSessionLocked([&]() {
-    dbgs() << "Emitting, for " << R.getTargetJITDylib().getName() << ", "
-           << *this << "\n";
-  }););
+  LLVM_DEBUG(ES.runSessionLocked(
+      [&]() { dbgs() << "Emitting, for " << N << ", " << *this << "\n"; }););
   L.emit(std::move(R), std::move(TSM));
   LLVM_DEBUG(ES.runSessionLocked([&]() {
-    dbgs() << "Finished emitting, for " << R.getTargetJITDylib().getName()
-           << ", " << *this << "\n";
+    dbgs() << "Finished emitting, for " << N << ", " << *this << "\n";
   }););
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62112.200365.patch
Type: text/x-patch
Size: 971 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190520/17c6796f/attachment.bin>


More information about the llvm-commits mailing list