[PATCH] D84274: Fixed move constructor of MMI to move MachineFunctions map

Justin Bogner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 27 14:10:42 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4b5412b5dbc8: Fix the move constructor of MMI to move MachineFunctions map (authored by sridhar_gopinath, committed by bogner).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84274

Files:
  llvm/lib/CodeGen/MachineModuleInfo.cpp


Index: llvm/lib/CodeGen/MachineModuleInfo.cpp
===================================================================
--- llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ llvm/lib/CodeGen/MachineModuleInfo.cpp
@@ -178,7 +178,8 @@
 MachineModuleInfo::MachineModuleInfo(MachineModuleInfo &&MMI)
     : TM(std::move(MMI.TM)),
       Context(MMI.TM.getMCAsmInfo(), MMI.TM.getMCRegisterInfo(),
-              MMI.TM.getObjFileLowering(), nullptr, nullptr, false) {
+              MMI.TM.getObjFileLowering(), nullptr, nullptr, false),
+      MachineFunctions(std::move(MMI.MachineFunctions)) {
   ObjFileMMI = MMI.ObjFileMMI;
   CurCallSite = MMI.CurCallSite;
   UsesMSVCFloatingPoint = MMI.UsesMSVCFloatingPoint;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84274.281054.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200727/19576b0b/attachment.bin>


More information about the llvm-commits mailing list